Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Errno::ECONNREFUSED: Connection refused - if javascript enabled #40

Open
sivagollapalli opened this Issue · 1 comment

2 participants

@sivagollapalli
require "test_helper"

feature "User" do
  scenario "should be able save", js: true do
    visit users_path
    click_link 'New User'
    fill_in "user_first_name", with: 'Siva'
    click_button 'Create User'

    expect(User.all.count).to_equal 1
  end 
end

when I run m test/features/user_test.rb then it shows output as:

Run options: -n "/(test_0001_should be able save)/" --seed 1033

# Running tests:

.

Fabulous tests in 7.113431s, 0.1406 tests/s, 0.1406 assertions/s.

1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
Run options: --seed 30370

# Running tests:

E

Fabulous tests in 0.018767s, 53.2856 tests/s, 0.0000 assertions/s.

  1) Error:
User Feature Test#test_0001_should be able save:
Errno::ECONNREFUSED: Connection refused - connect(2)
    test/features/user_test.rb:5:in `block (2 levels) in <top (required)>'

  2) Error:
User Feature Test#test_0001_should be able save:
Errno::ECONNREFUSED: Connection refused - connect(2)


1 tests, 0 assertions, 0 failures, 2 errors, 0 skips

But when I run rake minitest:features RAILS_ENV=test then it shows output as:

Run options: --seed 36625

# Running tests:

.

Fabulous tests in 7.232279s, 0.1383 tests/s, 0.1383 assertions/s.

1 tests, 1 assertions, 0 failures, 0 errors, 0 skips

But if disabled javascript then both rake task and m gives same output. All tests are passed. I didn't understand whether I did any thing wrong or it's an issue.

@zamith
Collaborator

@sivagollapalli Is this issue still happening and still relevant for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.