Skip to content

Commit

Permalink
add tests for issue #80
Browse files Browse the repository at this point in the history
  • Loading branch information
elrayle committed Oct 6, 2015
1 parent b74d44c commit 8c3b450
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/activefedora/association_spec.rb
Expand Up @@ -76,6 +76,16 @@ class Image < ActiveFedora::Base

it { is_expected.to eq [generic_file1, generic_file2] }
end

context "and not persisted" do
it "should have first predicate set" do
expect( image.first ).to eq generic_file1
end

it "should have last predicate set" do
expect( image.last ).to eq generic_file2
end
end
end

context "when the association contains records" do
Expand Down

0 comments on commit 8c3b450

Please sign in to comment.