Skip to content

Commit

Permalink
Putting (working) specs back
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Jul 13, 2014
1 parent 5202dae commit 1e1b1bf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/e2e/query_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,13 @@ class Teacher
othmar.lessons_taught.students.where(age: 16).to_a.should == [sandra]
end

it 'can allow for filtering mid-association-chain' do
othmar.lessons_taught.where(level: 201).students.to_a.should == [sandra]
end

it 'can allow for returning nodes mis-association-chain' do
othmar.lessons_taught(:lesson).students.where(age: 16).pluck(:lesson).should == [math201]
end
end
end

0 comments on commit 1e1b1bf

Please sign in to comment.