Sha256: 15d10e2188b43b2e3a1501967f1b0dfb6a73c40505619033e876788738a7b734

Contents?: true

Size: 486 Bytes

Versions: 6

Compression:

Stored size: 486 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe "page/configuration" do
  fixtures :all

  before(:each) do
    view.stub(:current_user).and_return(User.find('enjuadmin'))
    @ability = Object.new
    @ability.extend(CanCan::Ability)
    controller.stub(:current_ability) { @ability }
  end

  it "renders attributes in <p>" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/Checkout/)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
enju_leaf-1.1.0.rc20 spec/views/page/configuration.html.erb_spec.rb
enju_leaf-1.1.0.rc19 spec/views/page/configuration.html.erb_spec.rb
enju_leaf-1.1.0.rc18 spec/views/page/configuration.html.erb_spec.rb
enju_leaf-1.1.0.rc17 spec/views/page/configuration.html.erb_spec.rb
enju_leaf-1.1.0.rc16 spec/views/page/configuration.html.erb_spec.rb
enju_leaf-1.1.0.rc15 spec/views/page/configuration.html.erb_spec.rb