Sha256: 6e1279ddf11fcf412c101d95373ba713c150db49e5736226cf7e9c139a5b3be0

Contents?: true

Size: 477 Bytes

Versions: 13

Compression:

Stored size: 477 Bytes

Contents

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

describe "page/import" 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(/Import/)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
enju_leaf-1.1.4 spec/views/page/import.html.erb_spec.rb
enju_leaf-1.1.3 spec/views/page/import.html.erb_spec.rb
enju_leaf-1.1.2 spec/views/page/import.html.erb_spec.rb
enju_leaf-1.1.1 spec/views/page/import.html.erb_spec.rb
enju_leaf-1.1.0 spec/views/page/import.html.erb_spec.rb
enju_leaf-1.1.0.rc22 spec/views/page/import.html.erb_spec.rb
enju_leaf-1.1.0.rc21 spec/views/page/import.html.erb_spec.rb
enju_leaf-1.1.0.rc20 spec/views/page/import.html.erb_spec.rb
enju_leaf-1.1.0.rc19 spec/views/page/import.html.erb_spec.rb
enju_leaf-1.1.0.rc18 spec/views/page/import.html.erb_spec.rb
enju_leaf-1.1.0.rc17 spec/views/page/import.html.erb_spec.rb
enju_leaf-1.1.0.rc16 spec/views/page/import.html.erb_spec.rb
enju_leaf-1.1.0.rc15 spec/views/page/import.html.erb_spec.rb