Sha256: 25fcb162a17c506c22d077144d1923f2ca0fbf399b3c88d1f9b467fc061f463d

Contents?: true

Size: 575 Bytes

Versions: 43

Compression:

Stored size: 575 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_false
    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_true
    end
  end
end

Version data entries

43 entries across 38 versions & 5 rubygems

Version Path
rspec-rails-2.5.0 spec/rspec/rails/configuration_spec.rb
rspec-rails-2.4.1 spec/rspec/rails/configuration_spec.rb
rspec-rails-2.4.0 spec/rspec/rails/configuration_spec.rb