StackOverflow Questions for Tag: shoulda-matchers

Sanju Basnet
Sanju Basnet

Reputation: 136

spec failed. NoMethodError: undefined method `callback' for #<RSpec::ExampleGroups::O

Score: 0

Views: 140

Answers: 0

Read More
Anas Shahid
Anas Shahid

Reputation: 3

For an ActiveRecord model with overridden `New` method, how to provide custom test subject with parameters using FactoryGirl in Rails shoulda matchers

Score: -1

Views: 42

Answers: 1

Read More
MZaragoza
MZaragoza

Reputation: 10111

rspec shoulda matchers is expected to belong to polymorphic

Score: 3

Views: 2481

Answers: 1

Read More
piyush
piyush

Reputation: 1

validation_inclusion_of rspec test case is returning ArgumentError

Score: 0

Views: 280

Answers: 2

Read More
mutebi ug official
mutebi ug official

Reputation: 15

Testing requests with rspec

Score: 0

Views: 1209

Answers: 1

Read More
Alex Kleshchevnikov
Alex Kleshchevnikov

Reputation: 364

I need to write specs to check permitted params for create action and getting error

Score: 0

Views: 206

Answers: 1

Read More
Wagner Braga
Wagner Braga

Reputation: 497

Rails test using rspec, shoulda_matcher and factory_bot_rails rturns PG::NotNullViolation: ERROR: null value in column

Score: 0

Views: 817

Answers: 2

Read More
SsPay
SsPay

Reputation: 199

Why are tests failing due to validation?

Score: 0

Views: 139

Answers: 1

Read More
Gonza
Gonza

Reputation: 107

Shoulda matchers - Rspec - Test controllers Actions to Json Response - FastJSON

Score: 0

Views: 252

Answers: 2

Read More
MZaragoza
MZaragoza

Reputation: 10111

shoulda-matchers are not matching

Score: 0

Views: 280

Answers: 0

Read More

ShouldaMatchers validate_uniquess_of scoped to multiple columns

Score: 3

Views: 753

Answers: 2

Read More
reedandchrissy
reedandchrissy

Reputation: 3

NoMethodError: undefined method `belong_to' for test when using shoulda-matchers in unit test

Score: 0

Views: 871

Answers: 1

Read More
Demian Sims
Demian Sims

Reputation: 921

Rspec testing strong params in Rails not working (wrong number of arguments)

Score: 0

Views: 777

Answers: 0

Read More
Tu Nguyen
Tu Nguyen

Reputation: 10179

Shoulda::Matchers::Independent::DelegateMethodMatcher: undefined method `allow_nil'

Score: 2

Views: 373

Answers: 1

Read More
PreviousPage 1Next