Sha256: 160a3b776f31b10ce7d974ab963e95f3cf954229efa82862abe7ae51d58b6a41
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
require "spec_helper" describe "configuration" do before do @orig_render_views = RSpec.configuration.render_views? end after do RSpec.configuration.render_views = @orig_render_views end describe "#render_views?" do it "is false by default" do RSpec.configuration.render_views?.should be_falsey end end describe "#render_views" do it "sets render_views? to return true" do RSpec.configuration.render_views = false RSpec.configuration.render_views RSpec.configuration.render_views?.should be_truthy end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-rails-3.0.0.beta1 | spec/rspec/rails/configuration_spec.rb |
rspec-rails-2.99.0.beta1 | spec/rspec/rails/configuration_spec.rb |