Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/submit a link #2

Merged
merged 25 commits into from
Sep 20, 2015
Merged

Feature/submit a link #2

merged 25 commits into from
Sep 20, 2015

Conversation

JuanitoFatas
Copy link
Contributor

  • Outside-in development
  • Happy path

As a user,
When I visit the home page,
And I click "submit",
And I fill in my title and url,
And I click "Submit",
Then I should see the title on the page,
And it should link to the given URL.

As a user,
When I visit the home page,
And I click "submit",
And I fill in my title and url,
And I click "Submit",
Then I should see the title on the page,
And it should link to the given URL.
     Failure/Error: visit root_path
     NameError:
       undefined local variable or method `root_path' for
#<RSpec::ExampleGroups::SubmitsALink:0x007f9f9dbe7a00>
     Failure/Error: visit root_path
     ActionController::RoutingError:
       uninitialized constant LinksController
     Failure/Error: visit root_path
     NoMethodError:
       undefined method `action' for LinksController:Class
     Failure/Error: visit root_path
     AbstractController::ActionNotFound:
       The action 'index' could not be found for LinksController
Failure/Error: visit root_path
     ActionView::MissingTemplate:
       Missing template links/index, application/index with
{:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb,
:builder, :raw, :ruby, :coffee]}. Searched in:
         * "/Users/Juan/jollygoodcode/hacker_news/app/views"
     Failure/Error: click_on "submit"
     Capybara::ElementNotFound:
       Unable to find link or button "submit"
     Failure/Error: visit root_path
     ActionView::Template::Error:
       undefined local variable or method `new_link_path' for
#<#<Class:0x007f8000aefdf8>:0x007f8000aef470>
     Failure/Error: click_on "submit"
     AbstractController::ActionNotFound:
       The action 'new' could not be found for LinksController
     Failure/Error: click_on "submit"
     ActionView::MissingTemplate:
       Missing template links/new, application/new with
{:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb,
:builder, :raw, :ruby, :coffee]}. Searched in:
         * "/Users/Juan/jollygoodcode/hacker_news/app/views"
     Failure/Error: fill_in "title", with: title
     Capybara::ElementNotFound:
       Unable to find field "title"
     Failure/Error: click_on "submit"
     ActionView::Template::Error:
       First argument in form cannot contain nil or be empty
     Failure/Error: click_on "submit"
     NameError:
       uninitialized constant LinksController::Link
     Failure/Error: click_on "submit"
     ActionView::Template::Error:
       undefined method `model_name' for #<Link:0x007fe8e2b31320>
     Failure/Error: click_on "submit"
     ActiveRecord::StatementInvalid:
       PG::UndefinedTable: ERROR:  relation "links" does not exist
       LINE 5:                WHERE a.attrelid = '"links"'::regclass
                                                 ^
       :               SELECT a.attname, format_type(a.atttypid,
a.atttypmod),
                            pg_get_expr(d.adbin, d.adrelid),
a.attnotnull, a.atttypid, a.atttypmod
                       FROM pg_attribute a LEFT JOIN pg_attrdef d
                         ON a.attrelid = d.adrelid AND a.attnum =
d.adnum
                      WHERE a.attrelid = '"links"'::regclass
                        AND a.attnum > 0 AND NOT a.attisdropped
                      ORDER BY a.attnum
     Failure/Error: click_on "submit"
     ActionView::Template::Error:
       undefined method `links_path' for
#<#<Class:0x007fabe6132808>:0x007fabe149abd0>
     Failure/Error: click_on "Submit"
     AbstractController::ActionNotFound:
       The action 'create' could not be found for LinksController
     Failure/Error: click_on "Submit"
     ActionView::MissingTemplate:
       Missing template links/create, application/create with
{:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb,
:builder, :raw, :ruby, :coffee]}. Searched in:
         * "/Users/Juan/jollygoodcode/hacker_news/app/views"
     Failure/Error: click_on "Submit"
     NoMethodError:
       undefined method `link_url' for
#<LinksController:0x007fcd322d2718>
     Failure/Error: click_on "Submit"
     AbstractController::ActionNotFound:
       The action 'show' could not be found for LinksController
     Failure/Error: click_on "Submit"
     ActionView::MissingTemplate:
       Missing template links/show, application/show with
{:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb,
:builder, :raw, :ruby, :coffee]}. Searched in:
         * "/Users/Juan/jollygoodcode/hacker_news/app/views"
     Failure/Error: expect(page).to have_link title, href: url
       expected to find link "deppbot" with href
"https://www.deppbot.com" but there were no matches
     Failure/Error: click_on "Submit"
     ActionView::Template::Error:
       undefined method `title' for nil:NilClass
JuanitoFatas added a commit that referenced this pull request Sep 20, 2015
@JuanitoFatas JuanitoFatas merged commit 73fb315 into master Sep 20, 2015
@JuanitoFatas JuanitoFatas deleted the feature/submit-a-link branch September 20, 2015 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant