Skip to content

Commit

Permalink
test Enumerable methods on SchemaInstanceBase
Browse files Browse the repository at this point in the history
  • Loading branch information
notEthan committed Aug 13, 2018
1 parent 422b1a0 commit 4919560
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/schema_instance_base_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@
end
end
end
describe '#each, Enumerable methods' do
let(:document) { 'a string' }
it "raises NoMethodError calling each or Enumerable methods" do
assert_raises(NoMethodError) { subject.each { nil } }
assert_raises(NoMethodError) { subject.map { nil } }
end
end
describe '#modified_copy' do
describe 'with an instance that does have #modified_copy' do
it 'yields the instance to modify' do
Expand Down

0 comments on commit 4919560

Please sign in to comment.