fox tests
This commit is contained in:
parent
bdf4007cb7
commit
22bbb379ae
2 changed files with 27 additions and 28 deletions
|
@ -132,12 +132,11 @@ describe Note do
|
||||||
|
|
||||||
describe :grouped_awards do
|
describe :grouped_awards do
|
||||||
before do
|
before do
|
||||||
create :note, note: "smile"
|
create :note, note: "smile", is_award: true
|
||||||
create :note, note: "smile"
|
create :note, note: "smile", is_award: true
|
||||||
end
|
end
|
||||||
|
|
||||||
it "returns grouped array of notes" do
|
it "returns grouped array of notes" do
|
||||||
grouped_array = Note.grouped_awards
|
|
||||||
expect(Note.grouped_awards.first.first).to eq("smile")
|
expect(Note.grouped_awards.first.first).to eq("smile")
|
||||||
expect(Note.grouped_awards.first.last).to match_array(Note.all)
|
expect(Note.grouped_awards.first.last).to match_array(Note.all)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue