spec/command_spec.rb in mercenary-0.3.0 vs spec/command_spec.rb in mercenary-0.3.1
- old
+ new
@@ -58,10 +58,10 @@
name = "show_drafts"
opts = ['--drafts', 'Render posts in the _drafts folder']
option = Mercenary::Option.new(name, opts)
command.option name, *opts
expect(command.options).to eql([option])
- expect(command.map).to include({option.hash => name})
+ expect(command.map.values).to include(name)
end
it "knows its full name" do
expect(command_with_parent.full_name).to eql("my_parent i_have_parent")
end