refactors notifications into concerns and shared examples

This commit is contained in:
rgarcia
2017-12-14 16:15:30 +01:00
parent 56a7c46c12
commit 2b52d26d82
35 changed files with 630 additions and 376 deletions

View File

@@ -1,9 +1,13 @@
require 'rails_helper'
describe :poll do
describe Poll do
let(:poll) { build(:poll) }
describe "Concerns" do
it_behaves_like "notifiable"
end
describe "validations" do
it "should be valid" do
expect(poll).to be_valid
@@ -199,4 +203,5 @@ describe :poll do
end
end
end