testing-rails icon indicating copy to clipboard operation
testing-rails copied to clipboard

Source code for the Testing Rails book

Results 13 testing-rails issues
Sort by recently updated
recently updated
newest added

Just added an 'a' to a sentence that needed one!

Hi, I am not able to install 2.2.0 ``` smuralik@smuralik-NUC8i7BEH:~/Documents$ rbenv install 2.2.0 Downloading ruby-2.2.0.tar.bz2... -> https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.0.tar.bz2 Installing ruby-2.2.0... WARNING: ruby-2.2.0 is past its end of life and is now...

https://thoughtbot.com/testing-rails-sample.pdf mentioned in the README here https://github.com/thoughtbot/testing-rails#updating-the-samplepdf 404s

Hello, A wonderful day for all of Us :) I am reading your book and I would like to express my thanks for this wonderful resource. I am grateful to...

Adding ``` Shoulda::Matchers.configure do |config| config.integrate do |with| with.test_framework :rspec with.library :rails end end ``` to the end of rails_helper.rb is required to use shoulda_matchers in your code. This is...

Wouldn't it be clearer to get rid of the following line of code: `it { is_expected.to validate_uniqueness_of(:url) }` in [validations_and_associations.md](https://github.com/thoughtbot/testing-rails/blob/master/book/types_of_tests/model_specs/validations_and_associations.md), since urls are not expected to be unique (see [link_spec.rb](https://github.com/thoughtbot/testing-rails/blob/master/example_app/spec/models/link_spec.rb))?...

Depracted static attributes are still used in [factories.rb](https://github.com/thoughtbot/testing-rails/blob/master/example_app/spec/factories.rb): ```FactoryBot.define do factory :link do title "Testing Rails" url "http://testingrailsbook.com" trait :invalid do title nil end end end ``` Instead, the code...

Just bought the testing-rails book. It referred me to this application. I have ruby 2.6.2. $: bin/rails server Results in: Your Ruby version is 2.6.2, but your Gemfile specified 2.2.0...

According to https://stackoverflow.com/a/46677347/58049 it is no more possible to do a POST like this: `post "/api/v1/links", link: link_params`. Must be called with `params` keyword: `post "/api/v1/links", params: { link: link_params...

- http://guides.rubyonrails.org/testing.html#system-testing - https://relishapp.com/rspec/rspec-rails/v/3-7/docs/system-specs/system-spec