spec/collection_spec.rb in her-0.4 vs spec/collection_spec.rb in her-0.4.1

- old
+ new

@@ -1,27 +1,26 @@ require 'spec_helper' describe Her::Collection do - let(:items) { [1,2,3,4] } - let(:metadata) { {:name => 'Testname'} } - let(:errors) { {:name => ['not_present']} } + let(:items) { [1, 2, 3, 4] } + let(:metadata) { { :name => 'Testname' } } + let(:errors) { { :name => ['not_present'] } } describe "#new" do context "without parameters" do - subject { Her::Collection.new } - it { should eq([])} - its(:metadata) { should eq({})} - its(:errors) { should eq({})} + it { should eq([]) } + its(:metadata) { should eq({}) } + its(:errors) { should eq({}) } end context "with parameters" do - subject { Her::Collection.new(items, metadata, errors)} + subject { Her::Collection.new(items, metadata, errors) } - it { should eq([1,2,3,4])} - its(:metadata) { should eq({:name => 'Testname'})} - its(:errors) { should eq({:name => ['not_present']})} + it { should eq([1,2,3,4]) } + its(:metadata) { should eq({ :name => 'Testname' }) } + its(:errors) { should eq({ :name => ['not_present'] }) } end end end