StackOverflow Questions for Tag: rspec3

cmthakur
cmthakur

Reputation: 2346

Capybara::ElementNotFound: Unable to find file field "file"

Score: 8

Views: 6229

Answers: 2

Read More
rob
rob

Reputation: 2296

How to raise an exception in an RSpec test

Score: 27

Views: 38261

Answers: 2

Read More
jansha
jansha

Reputation: 171

Rspec returning expeced 1 time received 0 time

Score: 1

Views: 139

Answers: 1

Read More
Hirurg103
Hirurg103

Reputation: 4953

Configure rspec to exclude a folder unless it is explicitly given to rspec to run

Score: 2

Views: 1951

Answers: 2

Read More
mutebi godfrey
mutebi godfrey

Reputation: 113

Testing mailers with Rspec and factory_bot

Score: 0

Views: 406

Answers: 1

Read More
MikaAK
MikaAK

Reputation: 2364

Rspec to have(n).items undefined method

Score: 31

Views: 12967

Answers: 1

Read More
John Doe
John Doe

Reputation: 1414

How to test a method that yields with arguments x times?

Score: 2

Views: 328

Answers: 2

Read More
carterw485
carterw485

Reputation: 818

Is there a way to automatically update an RSpec expectation?

Score: 2

Views: 759

Answers: 1

Read More

Rspec, Rails 5, Ransack: test view index.html.erb

Score: 2

Views: 491

Answers: 1

Read More
Dmytro Savochkin
Dmytro Savochkin

Reputation: 353

Is there a way in RSpec to assert both number of calls and the list of arguments together?

Score: 3

Views: 2777

Answers: 2

Read More
7stud
7stud

Reputation: 48589

What are the differences between the commands: spec, rspec, rake spec?

Score: 4

Views: 2367

Answers: 0

Read More
Paul Fioravanti
Paul Fioravanti

Reputation: 16793

RSpec allow/expect vs just expect/and_return

Score: 74

Views: 64262

Answers: 1

Read More
Filip Bartuzi
Filip Bartuzi

Reputation: 5931

RSpec sequence of returned values AND raised errors from stub

Score: 10

Views: 4397

Answers: 4

Read More
Daniel
Daniel

Reputation: 4301

How to properly mock an instance of an Active Record model to test that a method has been called

Score: 4

Views: 1936

Answers: 2

Read More
Abdul
Abdul

Reputation: 21

Why is my current stub in my RSpec test not properly stubbing the call to the method? Currently getting No such file or directory @ rb_sysopen

Score: 1

Views: 110

Answers: 1

Read More
Nimish
Nimish

Reputation: 1066

How to resolve RSpec's deprecation warning about the new expect syntax?

Score: 12

Views: 7088

Answers: 3

Read More
Vishal Jain
Vishal Jain

Reputation: 501

RspecJunitFormatter not working after upgrading rspec 2 to 3

Score: 0

Views: 197

Answers: 1

Read More
Sanjay Salunkhe
Sanjay Salunkhe

Reputation: 135

How to pass argument to subject in rspec

Score: 10

Views: 13638

Answers: 1

Read More
maz
maz

Reputation: 2476

Is it possible to have parameterized specs in RSpec?

Score: 23

Views: 7371

Answers: 1

Read More
Rashmi Balkur
Rashmi Balkur

Reputation: 337

How to write RSpec test cases for TimeOutError Exception

Score: 0

Views: 357

Answers: 1

Read More
PreviousPage 1Next