Add to Budget Budget::Heading Budget::Group specs the sluggable shared example

Why:

* Those classes have a slug attribute that needs to be filled

How:

* Just adding the shared example to Budget model spec, and creating the model spec file for Heading and Group to include it as well
This commit is contained in:
Bertocq
2017-07-04 14:16:53 +02:00
parent 148b58f71d
commit 73e0a5a88d
3 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
require 'rails_helper'
describe Budget::Group do
it_behaves_like "sluggable"
end

View File

@@ -0,0 +1,7 @@
require 'rails_helper'
describe Budget::Heading do
it_behaves_like "sluggable"
end

View File

@@ -2,6 +2,8 @@ require 'rails_helper'
describe Budget do
it_behaves_like "sluggable"
describe "description" do
it "changes depending on the phase" do
budget = create(:budget)