Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

New ruby hash syntax sucks

  • Loading branch information...
commit c53de11f9a142c9508aee6ddfb4a6b2f5fafe39d 1 parent aef3fbf
@solnic authored
View
8 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) }
Please sign in to comment.
Something went wrong with that request. Please try again.