spec/show_model_spec.rb in pry-rails-0.3.6 vs spec/show_model_spec.rb in pry-rails-0.3.7

- old
+ new

@@ -30,12 +30,12 @@ name: String embeds_one :beer (validate) embeds_many :instruments (validate) MODEL - output.gsub! /^ *_type: String\n/, '' # mongoid 3.0 and 3.1 differ on this - output.gsub! /Moped::BSON/, 'BSON' # mongoid 3 and 4 differ on this + output.gsub!(/^ *_type: String\n/, '') # mongoid 3.0 and 3.1 differ on this + output.gsub!(/Moped::BSON/, 'BSON') # mongoid 3 and 4 differ on this output.must_equal expected end end it "should print an error if the model doesn't exist" do @@ -48,8 +48,8 @@ output.must_equal "Don't know how to show PryRails!\n" end it "should print help if no model name is given" do output = mock_pry('show-model', 'exit-all') - output.must_match /Usage: show-model/ + output.must_match(/Usage: show-model/) end end