Skip to content

Commit

Permalink
Add test for loaf configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Oct 15, 2017
1 parent 60995d9 commit 36c245e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/unit/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,12 @@
locales_path: '/'
})
end

it "yields configuration" do
conf = double(:conf)
allow(Loaf).to receive(:configuration).and_return(conf)
expect { |b|
Loaf.configure(&b)
}.to yield_with_args(conf)
end
end

0 comments on commit 36c245e

Please sign in to comment.