Sha256: 9ad8e5586306c2ef0ef59d0fa505ee92e476bc0911d8cf3dbaa089c284fbf042

Contents?: true

Size: 384 Bytes

Versions: 18

Compression:

Stored size: 384 Bytes

Contents

require 'spec_helper'

describe "Rendering" do

  include RSpec::Rails::RequestExampleGroup

  it "should render native temptate if exists" do
    get admin_users_url
    response.should render_template('admin/users/index')
  end

  it "should fallback to puffer template if native not exists" do
    get admin_posts_url
    response.should render_template('puffer/index')
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
puffer-0.0.19 spec/lib/render_fallback_spec.rb
puffer-0.0.18 spec/lib/render_fallback_spec.rb
puffer-0.0.17 spec/lib/render_fallback_spec.rb
puffer-0.0.16 spec/lib/render_fallback_spec.rb
puffer-0.0.15 spec/lib/render_fallback_spec.rb
puffer-0.0.14 spec/lib/render_fallback_spec.rb
puffer-0.0.13 spec/lib/render_fallback_spec.rb
puffer-0.0.12 spec/lib/render_fallback_spec.rb
puffer-0.0.11 spec/lib/render_fallback_spec.rb
puffer-0.0.10 spec/lib/render_fallback_spec.rb
puffer-0.0.9 spec/lib/render_fallback_spec.rb
puffer-0.0.8 spec/lib/render_fallback_spec.rb
puffer-0.0.7 spec/lib/render_fallback_spec.rb
puffer-0.0.6 spec/lib/render_fallback_spec.rb
puffer-0.0.5 spec/lib/render_fallback_spec.rb
puffer-0.0.4 spec/lib/render_fallback_spec.rb
puffer-0.0.3 spec/lib/render_fallback_spec.rb
puffer-0.0.2 spec/lib/render_fallback_spec.rb