simple.rb
code = <<END
class Adder
def add_two(x)
x+2
end
end
simple.rb
code = <<END
class Adder
def add_two(x)
x+2
end
end
its
isn't core to RSpec. One the of the focuses of RSpec is on the documentation aspects of tests. Unfortunately, its
often leads to documentation output that is essentially lies. Consider this spec:
User = Struct.new(:name, :email)
describe User do
subject { User.new("bob") }
its(:name) { should == "bob" }
end