Sha256: 2f675a339ce06b24ee058c8709c144eb4fa93f8deffc2e412f5d21e44df363c2

Contents?: true

Size: 531 Bytes

Versions: 5

Compression:

Stored size: 531 Bytes

Contents

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

describe "profiles/show" do
  fixtures :all

  before(:each) do
    @profile = assign(:profile, profiles(:admin))
    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

5 entries across 5 versions & 1 rubygems

Version Path
enju_leaf-1.1.0.rc19 spec/views/profiles/show.html.erb_spec.rb
enju_leaf-1.1.0.rc18 spec/views/profiles/show.html.erb_spec.rb
enju_leaf-1.1.0.rc17 spec/views/profiles/show.html.erb_spec.rb
enju_leaf-1.1.0.rc16 spec/views/profiles/show.html.erb_spec.rb
enju_leaf-1.1.0.rc15 spec/views/profiles/show.html.erb_spec.rb