StackOverflow Questions for Tag: ruby-mocha

Raunak Kapoor
Raunak Kapoor

Reputation: 931

How to stub a method called in configuration block in sinatra application?

Score: -1

Views: 172

Answers: 2

Read More
xwan
xwan

Reputation: 23

Mocking an API call that should return a delayed response?

Score: 0

Views: 178

Answers: 0

Read More
Hut8
Hut8

Reputation: 6332

Why am I unable to redefine an included class method after undefining it with undef in ruby?

Score: 3

Views: 106

Answers: 2

Read More
Reid
Reid

Reputation: 711

How to make Ruby Mocha mock only check about one parameter

Score: 3

Views: 1806

Answers: 3

Read More
theKid
theKid

Reputation: 611

undefined method `receive' in Rspec Rails

Score: 0

Views: 657

Answers: 1

Read More
Mirror318
Mirror318

Reputation: 12663

Stubbing controller methods in Rails

Score: 0

Views: 924

Answers: 1

Read More
Jason
Jason

Reputation: 1

Difference between RR mock.instance_of and Mocha any_instance

Score: 0

Views: 1335

Answers: 1

Read More
Mark Huk
Mark Huk

Reputation: 2380

Mocha: Why can't I stub #caller method?

Score: 1

Views: 501

Answers: 3

Read More
pipboy3k
pipboy3k

Reputation: 123

Stubbing Grape helper

Score: 4

Views: 3349

Answers: 2

Read More
Michael Trojanek
Michael Trojanek

Reputation: 1943

How to stub method with specific parameter (and leave calls with other parameters unstubbed) in Mocha?

Score: 6

Views: 1985

Answers: 1

Read More
Tiago Bértolo
Tiago Bértolo

Reputation: 4333

How do I allow Chrome to use my microphone programmatically?

Score: 19

Views: 18446

Answers: 6

Read More
Bungus
Bungus

Reputation: 602

Ruby Mocha - how to specify ".with" multiple ".times"

Score: 2

Views: 2821

Answers: 1

Read More
Innerpeacer
Innerpeacer

Reputation: 1321

Mocha: How to add expectation of a method when there are multiple invocations with different parameters

Score: 16

Views: 10402

Answers: 3

Read More
user2274074
user2274074

Reputation: 1087

Rails: Mocha gem how to test exception

Score: 0

Views: 347

Answers: 0

Read More
simo
simo

Reputation: 24540

cannot load such file -- mocha/object (LoadError)

Score: 3

Views: 9191

Answers: 2

Read More
Toby 1 Kenobi
Toby 1 Kenobi

Reputation: 5037

How do I expect a method to be run with specific ActiveRecord parameters

Score: 0

Views: 1209

Answers: 3

Read More
Michael Trojanek
Michael Trojanek

Reputation: 1943

Why doesn't Mocha complain about expectations?

Score: 1

Views: 468

Answers: 0

Read More
John Gallagher
John Gallagher

Reputation: 6268

NoMethodError: undefined method `mock' with Mocha and Rails 3

Score: 6

Views: 4013

Answers: 1

Read More
vdaubry
vdaubry

Reputation: 11439

How to mock ActsAsTaggableOn with RSpec and Mocha?

Score: 2

Views: 573

Answers: 0

Read More
Chry Cheng
Chry Cheng

Reputation: 3468

Installing Mocha 0.9.7 in a Rails 2.3.3 project

Score: 1

Views: 1319

Answers: 1

Read More
PreviousPage 1Next