Commit 22bbb379 authored by Valery Sizov's avatar Valery Sizov

fox tests

parent bdf4007c
...@@ -132,12 +132,11 @@ describe Note do ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment