We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2950544 commit 0353881Copy full SHA for 0353881
spec/article_json/configuration_spec.rb
@@ -2,6 +2,8 @@
2
subject(:configuration) { described_class.new }
3
4
describe 'configuration block' do
5
+ # make sure we test with a fresh config...
6
+ before { ArticleJSON.configuration = configuration }
7
it 'should set the configuration values correctly' do
8
expect { ArticleJSON.configure { |c| c.oembed_user_agent = 'foo' } }.to(
9
change { ArticleJSON.configuration.oembed_user_agent }
@@ -19,7 +21,7 @@
19
21
end
20
22
23
context 'when it has a value' do
- before { configuration.instance_variable_set(:@oembed_user_agent, 'foo') }
24
+ before { configuration.oembed_user_agent = 'foo' }
25
it { should eq 'foo' }
26
27
0 commit comments