spec/tests/DSL.rb in Checked-2.0.2 vs spec/tests/DSL.rb in Checked-3.0.0

- old
+ new

@@ -100,21 +100,21 @@ it "returns false if string is not :empty? after applying :strip" do Stripped!(" n ").empty?.should.be === false end it 'returns string with original name' do - Stripped!("Test String", 'test').Checked.name.should == 'Test String' + Stripped!("Test String", 'test').Checked.target_name.should == 'Test String' end end # === describe Stripped! describe "String!" do behaves_like :racked_dsl - it 'returns the string' do + it 'returns the string with same name' do s = 'str' - String!( s ).object_id.should.be == s.object_id + String!( 'Tester', s ).Checked.target_name.should.be == 'Tester' end it 'raises Demand::Failed if not a string' do lambda { String!([])