Sha256: 897b654a26cd4173a3a4a9c36add1d0a7fb89cc2940c599a86716b63bd07a003

Contents?: true

Size: 513 Bytes

Versions: 32

Compression:

Stored size: 513 Bytes

Contents

require 'rails_helper'

describe "user_export_files/new" do
  before(:each) do
    assign(:user_export_file, stub_model(
      UserExportFile
    ).as_new_record)
    view.stub(:current_user).and_return(User.friendly.find('enjuadmin'))
  end

  it "renders new user form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", action: user_export_files_path, method: "post" do
      assert_select "input", name: "commit"
    end
  end
end

Version data entries

32 entries across 30 versions & 2 rubygems

Version Path
enju_library-0.3.11 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.10 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.9 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.8 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.8.rc.2 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.8.rc.1 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.4.0.rc.1 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.7 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.6 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.4.0.beta.4 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.4.0.beta.3 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.4.0.beta.2 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.4.0.beta.1 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.5 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.4 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.3 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.2 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.1 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.0 spec/views/user_export_files/new.html.erb_spec.rb
enju_library-0.3.0.rc.1 spec/views/user_export_files/new.html.erb_spec.rb