Skip to content

Commit

Permalink
Fixing ensure block in specs for mri-2.3/rbx-3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
simonc committed Jan 11, 2019
1 parent 35f1940 commit 9420af2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/pdfmonkey/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@

describe 'configuration=' do
it 'sets the Configuration object' do
described_class.configuration = 'Something'
expect(described_class.configuration).to eq('Something')
ensure
described_class.configuration = nil
begin
described_class.configuration = 'Something'
expect(described_class.configuration).to eq('Something')
ensure
described_class.configuration = nil
end
end
end

Expand Down

0 comments on commit 9420af2

Please sign in to comment.