spec/attribute_spec.rb in attributor-3.0.1 vs spec/attribute_spec.rb in attributor-4.0.0
- old
+ new
@@ -314,17 +314,13 @@
end
end
end
- context 'with an array' do
+ context 'with an Collection (of Strings)' do
+ let(:type) { Attributor::Collection.of(String) }
let(:example) { ["one"] }
- let(:generated_example) { "one" }
- it 'picks a random value' do
- example.should_receive(:pick).and_call_original
- example.should include example_result
- end
-
+ it { should == example }
end
end
context 'load' do