Permalink
Browse files

New ruby hash syntax sucks

  • Loading branch information...
1 parent aef3fbf commit c53de11f9a142c9508aee6ddfb4a6b2f5fafe39d @solnic committed Mar 10, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/unit/virtus/attribute/accessor/builder/class_methods/call_spec.rb
@@ -8,8 +8,8 @@
let(:type) {
mock(
'attribute_type',
- reader_class: reader_class,
- writer_class: writer_class
+ :reader_class => reader_class,
+ :writer_class => writer_class
)
}
@@ -23,8 +23,8 @@
type.should_receive(:reader_options).with(options).and_return({})
type.should_receive(:writer_options).with(options).and_return({})
- reader_class.should_receive(:new).with(name, visibility: :public).and_return(reader)
- writer_class.should_receive(:new).with(name, visibility: :public).and_return(writer)
+ reader_class.should_receive(:new).with(name, :visibility => :public).and_return(reader)
+ writer_class.should_receive(:new).with(name, :visibility => :public).and_return(writer)
end
it { should be_instance_of(Virtus::Attribute::Accessor) }

0 comments on commit c53de11

Please sign in to comment.