StackOverflow Questions for Tag: rspec

Louis Pate
Louis Pate

Reputation: 11

Can I write one expectation in RSpec which demands a method is called only once with specific arguments?

Score: 1

Views: 198

Answers: 2

Read More
user1291365
user1291365

Reputation: 576

rspec: raise_error usage to match error message

Score: 22

Views: 22411

Answers: 4

Read More
zs2020
zs2020

Reputation: 54543

How to mock the method calls with wildcard parameter in Rspec?

Score: 3

Views: 2619

Answers: 3

Read More
Astery
Astery

Reputation: 1256

How to require file from `gem` which are not under `lib` directory?

Score: 11

Views: 6242

Answers: 3

Read More
Michael Durrant
Michael Durrant

Reputation: 96574

rails - rspec - why does this "validates_inclusion_of :role, :in => %w[one, two, three ] }" not work

Score: 3

Views: 5329

Answers: 2

Read More
David Geismar
David Geismar

Reputation: 3422

How do you create association in after_build in factory bot rails?

Score: 1

Views: 3866

Answers: 2

Read More
hirowatari
hirowatari

Reputation: 3302

How to upload a file in a Rails Rspec request spec

Score: 25

Views: 21315

Answers: 10

Read More
Jwan622
Jwan622

Reputation: 11659

Ruby rspec converting mock hash with strings into hash with symbol

Score: 3

Views: 1012

Answers: 2

Read More
Ngoral
Ngoral

Reputation: 4824

Make specs pending conditionally

Score: 1

Views: 620

Answers: 2

Read More
I. Khan
I. Khan

Reputation: 209

Iterating to create contexts from a class

Score: 0

Views: 63

Answers: 1

Read More
aarkerio
aarkerio

Reputation: 2364

Rails acceptance validation always correct

Score: 1

Views: 77

Answers: 2

Read More
Sig
Sig

Reputation: 5986

RSpec system specs fail without allowing JS to finish

Score: 1

Views: 60

Answers: 0

Read More
rigyt
rigyt

Reputation: 2353

Pass parameter in setting attribute on association in FactoryGirl

Score: 33

Views: 21493

Answers: 3

Read More
23tux
23tux

Reputation: 14746

RSpec: Stub private method

Score: 37

Views: 57844

Answers: 4

Read More
aarkerio
aarkerio

Reputation: 2364

Rspec: testing "rescue_from" on type: :request

Score: 0

Views: 29

Answers: 1

Read More
Dan Sharp
Dan Sharp

Reputation: 1279

How do I test the order of method calls in rspec?

Score: 20

Views: 14277

Answers: 4

Read More
Aymeric
Aymeric

Reputation: 906

Rspec - How to replace receive by have_received when dealing with an expect within a block?

Score: 0

Views: 64

Answers: 1

Read More
Jaskaran Singh
Jaskaran Singh

Reputation: 33

Rspec expect( ) vs expect { }

Score: 3

Views: 2690

Answers: 1

Read More
Paweł Gościcki
Paweł Gościcki

Reputation: 9624

Stubbing/mocking global constants in RSpec

Score: 6

Views: 9055

Answers: 4

Read More
TheMayerof
TheMayerof

Reputation: 193

Ruby and Rspec mocking a hash

Score: 0

Views: 1916

Answers: 1

Read More
PreviousPage 1Next