私のモデルは
def self.empty_building
// stuff
end
この既存のものをどのようにrspecできますか?、試しました:
describe "empty_building" do
subject { Building.new }
it { should respond_to :empty_building }
end
but getting :
Failure/Error: it { should respond_to :empty_building }
expected #<Building id: nil, district_id: nil, name: nil,
direct: nil, created_at: nil, updated_at: nil> to respond to :empty_building