Giter VIP home page Giter VIP logo

rails-exercise-16's People

Contributors

derari avatar nilsthamm avatar

Watchers

 avatar

rails-exercise-16's Issues

Author index page should render

When a user visits the authors index page
Then the page should render

Got AbstractController::ActionNotFound: The action 'index' could not be found for AuthorsController

Paper page should display paper details

Given a paper entitled 'COMPUTING MACHINERY AND INTELLIGENCE'
When a user visits the paper's page
Then the page should render

Got AbstractController::ActionNotFound: The action 'show' could not be found for PapersController

Paper page should list the authors

Given a paper with an author
When a user visits the paper page
Then it should show the author's name

Expected to find text "alan turing" in "title: computing machinery and intelligence venue: mind 49: 433-460 year: 1950"

New author page should show validation errors

Given users visit the new author page
And fill in only first name and homepage
When they click submit
Then the page should report that last name can't be blank

Expected to find text "last name can't be blank" in "first name last name homepage"

Paper should not validate without year

When creating a paper without year
Then validation should fail

Expected #<paper id: nil, title: "computing machinery and intelligence", venue: "mind 49: 433-460", year: nil, created_at: nil, updated_at: nil> not to be valid

Author page should display author details

Given an author named 'Alan Turing'
When a user visits the author's page
Then it should show the author's last name

Expected to find text "last name: turing" in "first name: alan"

Edit paper page should pre-select the actual authors in the drop downs

Given a paper with one author
When a user visits the paper's edit page
Then the first select box should show the authors name

Expected to find select box "author 1" with "alan turing" selected but there were no matches. also found "(none) alan turing", which matched the selector but not all filters.

Author #name should return the full name

Given an author a with first name 'Alan' and last name 'Turing'
Then a.name should be 'Alan Turing'

Got NoMethodError: undefined method `name' for #Author:0x00000006bd6f90

New paper page should save the paper

When a user visits the new paper page
And fills in 'COMPUTING MACHINERY AND INTELLIGENCE', 'Mind 49: 433-460', and 1950, respectively
And submits the form
Then the paper should be found in the database

Got ActiveRecord::RecordNotFound: Couldn't find Paper

Author page should display author details

Given an author named 'Alan Turing'
When a user visits the author's page
Then it should show the author's first name

Expected to find text "first name: alan" in "first name: alan"

Paper index page should allow to filter by year

Given a paper published in 1950
And a paper published in 1968
When users visit the papers index page with url parameter year=1950
Then it should not show the paper published in 1968

You can use scopes [1] to implement this behavior.

Expected not to find text "go to statement considered harmful" in "listing papers title venue year computing machinery and intelligence mind 49: 433-460 1950 show edit destroy go to statement considered harmful communications of the acm 1968 show edit destroy add paper"

New author page should render

When a user visits the new author page
Then the page should render

You need to create an AuthorsController with a new action and set-up the appropriate routes. See the Rails guide for help.

Got NameError: undefined local variable or method `new_author_path' for #RSpec::ExampleGroups::NewAuthorPage:0x000000079514e0

Edit author page should render

Given an author named 'Alan Turing'
When a user visits the author's edit page
Then the page should render

Got AbstractController::ActionNotFound: The action 'edit' could not be found for AuthorsController

New author page should render

When a user visits the new author page
Then the page should render

You need to create an AuthorsController with a new action and set-up the appropriate routes. See the Rails guide for help.

Got NameError: undefined local variable or method `new_author_path' for #RSpec::ExampleGroups::NewAuthorPage:0x000000077e21e0

Paper should have title, venue, and year

When a paper is created with title 'COMPUTING MACHINERY AND INTELLIGENCE',
And venue 'Mind 49: 433-460', and year 1950
Then year should be 1950

Expected: 1950
got: "1950"

(compared using ==)

Author page should display author details

Given an author named 'Alan Turing'
When a user visits the author's page
Then it should show the author's first name

Expected to find text "first name: alan" in ""

Edit paper page should allow to select 5 authors from 5 separate drop downs

Given a paper
When a user visits the paper's edit page
Then it should have a select box for the first author

Create a <label> for each <select> and set the for attribute of the label to the id of the select. For example

f.label "Author 1", for: "paper_author_id_1"
f.collection_select :paper, :author_ids, authors, :id, :name, {selected: @paper.author_ids[1], include_blank: '(none)'}, {name: "paper[author_ids][]", id: "paper_author_id_1"

See collection_select

Expected to find field "author 1" but there were no matches

Author page should display author details

Given an author named 'Alan Turing'
When a user visits the author's page
Then it should show the author's first name

Expected to find text "first name: alan" in "last name: turing"

Paper should not validate without venue

When creating a paper without venue
Then validation should fail

Expected #<paper id: nil, title: "computing machinery and intelligence", venue: nil, year: 1950, created_at: nil, updated_at: nil> not to be valid

Paper should not validate without title

When creating a paper without title
Then validation should fail

Expected #<paper id: nil, title: nil, venue: "mind 49: 433-460", year: 1950, created_at: nil, updated_at: nil> not to be valid

Edit paper page should allow to select 5 authors from 5 separate drop downs

Given a paper
When a user visits the paper's edit page
Then it should have a select box for the first author

Create a <label> for each <select> and set the for attribute of the label to the id of the select. For example

f.label "Author 1", for: "paper_author_id_1"
f.collection_select :paper, :author_ids, authors, :id, :name, {selected: @paper.author_ids[1], include_blank: '(none)'}, {name: "paper[author_ids][]", id: "paper_author_id_1"

See collection_select

Expected to find field "author 1" but there were no matches

Hi Nils, need any help?

Hi Nils,

we noticed you haven't connected your repo to Travis CI and haven't made any commits yet.
Do you need help with anything?
We'd be happy to assist you if there are any problems.
You can reply to this issue or join us on Slack.

Best,
Christoph

Author index page should have a link to delete an author

Given an author named 'Alan Turing'
When users visit the authors index page
Then it should have a destroy link

Expected to find css "a" with text "destroy" but there were no matches. also found "show", "edit", "add author", which matched the selector but not all filters.

Author page should render

Given an author named 'Alan Turing'
When a user visits the author's page
Then the page should render

Got AbstractController::ActionNotFound: The action 'show' could not be found for AuthorsController

Author index page should link to edit author page

Given an author named 'Alan Turing'
When users visit the authors index page
Then it should link to the author's edit page

Expected to find css "a" with text "edit" but there were no matches. also found "show", "add author", which matched the selector but not all filters.

New author page should render

When a user visits the new author page
Then the page should render

You need to create an AuthorsController with a new action and set-up the appropriate routes. See the Rails guide for help.

Got NameError: undefined local variable or method `new_author_path' for #RSpec::ExampleGroups::NewAuthorPage:0x000000044f0458

Edit paper page should save changes

Given a paper
When a user visits the paper's edit page
Then the page should render

Got AbstractController::ActionNotFound: The action 'edit' could not be found for PapersController

Edit paper page should save changes to the author list

Given a paper with one author
And another author called 'Peter Plagiarist'
When a user visits the paper's edit page
And the selects 'Peter Plagiarist' as first author
And submits the form
Then 'Peter Plagiarist' should be author of the paper

Expected #<activerecord::associations::collectionproxy [#<author id: 1, first_name: "alan", last_name: "turing", homepage: "http://wikipedia.de/alan_turing", created_at: "2016-11-08 18:38:56", updated_at: "2016-11-08 18:38:56">]> to include #<author id: 2, first_name: "peter", last_name: "plagiarist", homepage: "http://wikipedia.de/alan_turing", created_at: "2016-11-08 18:38:56", updated_at: "2016-11-08 18:38:56">
diff:
@@ -1,8 +1,8 @@
-[#<author:0x00000006f6f170

  • id: 1,
  • first_name: "alan",
  • last_name: "turing",
  • homepage: "http://wikipedia.de/alan_turing",
    created_at: tue, 08 nov 2016 18:38:56 utc +00:00,
    updated_at: tue, 08 nov 2016 18:38:56 utc +00:00>]

New author page should render

When a user visits the new author page
Then the page should render

You need to create an AuthorsController with a new action and set-up the appropriate routes. See the Rails guide for help.

Got NameError: undefined local variable or method `new_author_path' for #RSpec::ExampleGroups::NewAuthorPage:0x000000055915c8

Author index page should link to author page

Given an author named 'Alan Turing'
When users visits the authors index page
Then it should link to the author page

Expected to find css "a" with text "show" but there were no matches. also found "add author", which matched the selector but not all filters.

Paper should not validate without year

When creating a paper without year
Then validation should fail

Expected #<paper id: nil, title: "computing machinery and intelligence", venue: "mind 49: 433-460", year: nil, created_at: nil, updated_at: nil> not to be valid

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.