Permalink
Browse files

Remove some unnecessary test code

  • Loading branch information...
rentalcustard committed Oct 23, 2012
1 parent a5eb047 commit 2a390256937905bb84d0f885a2b23b6408b61923
Showing with 1 addition and 3 deletions.
  1. +1 −3 spec/rspec/matchers/be_instance_of_spec.rb
@@ -32,11 +32,9 @@ def self.inspect
"User(id: integer, name: string)"
end
end
- let(:expected) { User }
it "provides a description including only the class name" do
- matcher = be_an_instance_of(expected)
- matcher.matches?(Numeric)
+ matcher = be_an_instance_of(User)
#it will be namespaced because I defined it inside this spec file
matcher.description.should == "be an instance of RSpec::Matchers::User"
end

0 comments on commit 2a39025

Please sign in to comment.