Skip to content

Commit fd34761

Browse files
committed
Ensure that the parliament model is reset for every test
1 parent a8528e3 commit fd34761

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

spec/support/parliament.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
RSpec.configure do |config|
2+
3+
config.before(:suite) do
4+
Parliament.destroy_all
5+
Parliament.reload
6+
end
7+
8+
config.before(:each) do |example|
9+
Parliament.destroy_all
10+
Parliament.reload
11+
end
12+
13+
end

0 commit comments

Comments
 (0)