Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7411341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:22:21+00:00 2026-05-29T06:22:21+00:00

I try to run test describe CreateFolders do describe GET /projects do it new

  • 0

I try to run test

describe "CreateFolders" do
  describe "GET /projects" do
    it "new folder", :js => true do
      @user = FactoryGirl.create(:user)
      visit projects_path
      fill_in('user_Login', :with => @user.email)
      fill_in('user_password', :with => @user.password)
      click_button('Sign in')
      page.should have_content('Logged in')
    end
  end

I see

Failures:

  1) CreateFolders GET /projects new folder
     Failure/Error: page.should have_content('Logged in')
       expected there to be content "Logged in" in "Invalid email or password.\nSign in\nRemember me\nForgot your password?"                                                                                                                     
     # ./spec/requests/create_folders_spec.rb:17:in `block (3 levels) in <top (required)>'

==============================================================================
UPDATED

FactoryGirl.define do
  factory :user do
    email Faker::Internet.free_email
    password 'password'
    Name Faker::Name.first_name
    Surname Faker::Name.last_name
    Phone Faker::PhoneNumber.phone_number
    Login Faker::Name.first_name
    company {|user| user.association(:company) }
  end
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:22:22+00:00Added an answer on May 29, 2026 at 6:22 am

    You should use cucumber for this goal

      @javascript
      Scenario Outline: Show or not dasboard
        Given the following user records
          | email                | password  | login    |
          | admin@mail.com       | password  | admin    |
    
        When I am on the home page
        And I fill in "user_email" with "<login>"
        And I fill in "user_password" with "<password>"
        And I press "Sign in"
        Then I should <flash>
    
        Examples:
          | login          | password | flash                         |
          | admin@mail.com | password | see "Signed in successfully." |
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I try to run test with FlexUnit4 and IntelliJ, I get this error:
I try to run this simplest unit test: test the truth do assert true
Whenever i try to run sqlmetal, i get this: 'sqlmetal' is not recognized as
When I try to run the following, I get an error back from ActiveRecord
I have just installed Rspec and Rspec-rails. When i try to run the test,
On NetBeans 6.7.1 with PHPUnit 3.4.1, If I try and run the test I
this error arises when i try to run the following test case which is
I try to run JUNIT test with eclipse and ANT they both are complainen
I try to run jsf application in myeclipse using jboss web server and following
I try to run one program in myeclipse where after creating one web project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.