4 ms·
But that's the thing. rspec: @micropost.should respond_to(:context) testunit: assert @micropost.respond_to?(:context) rspec: @micropost.shou
by danneu 14y ago
But that's the thing.
rspec: @micropost.should respond_to(:context)
testunit: assert @micropost.respond_to?(:context)
rspec: @micropost.should be_valid
testunit: assert @micropost.valid?
rspec: @micropost.should_not be_valid
testunit: refute @micropost.valid?
The testunit It's Just Ruby examples end up looking like the syntactic sugar!