spec/collection_spec.rb in efo_nelfo-1.5.3 vs spec/collection_spec.rb in efo_nelfo-1.5.4
- old
+ new
@@ -37,20 +37,20 @@
end
describe "<<" do
describe "passing a hash" do
- let(:hash) {
+ let(:a_hash) {
{ post_type: "BT", version: "2.1", whatever: 'blah' }
}
it "accepts a valid hash" do
- array << hash
+ array << a_hash
array.size.must_equal 1
end
it "converts the hash into a post type" do
- array << hash
+ array << a_hash
array[0].must_be_instance_of EfoNelfo::V21::BT
array[0].whatever.must_equal 'blah'
end
end