StackOverflow Questions for Tag: ruby-mocha

joeellis
joeellis

Reputation: 2785

Mocking an external API

Score: 2

Views: 1692

Answers: 1

Read More
nisevi
nisevi

Reputation: 626

stubs MailChimp api call for functional testing

Score: 1

Views: 1006

Answers: 1

Read More
Nikos D
Nikos D

Reputation: 431

Mocking/stubbing a method that's included from "instance.extend(DecoratorModule)"

Score: 3

Views: 3010

Answers: 4

Read More
matb
matb

Reputation: 879

How to run Node.js and Ruby tests within one project on Travis CI

Score: 6

Views: 3544

Answers: 1

Read More
Sebastien
Sebastien

Reputation: 6660

How do I stub a method of an instance only if a specific instance variable has a value?

Score: 6

Views: 1605

Answers: 3

Read More
rafamvc
rafamvc

Reputation: 8357

Is there a "not_expects" for mocha/rspec?

Score: 17

Views: 11154

Answers: 4

Read More
Shane Stillwell
Shane Stillwell

Reputation: 3258

How to print to stdout from system command in Rake?

Score: 1

Views: 6670

Answers: 1

Read More
Todd R
Todd R

Reputation: 18526

Testing methods called on yielded object

Score: 0

Views: 231

Answers: 2

Read More
David Nix
David Nix

Reputation: 3334

Mocha for same method needs to return 2 different values

Score: 0

Views: 862

Answers: 1

Read More
Rusty Robot
Rusty Robot

Reputation: 1365

Global mock with mocha

Score: 0

Views: 577

Answers: 1

Read More
AndrewVos
AndrewVos

Reputation: 1295

Why am I getting a NoMethodError when I use Mocha 0.9.8 with Test::Unit 2.1.1

Score: 0

Views: 192

Answers: 1

Read More
MexicanHacker
MexicanHacker

Reputation: 2685

TDD with mocha and mongodb

Score: 1

Views: 520

Answers: 1

Read More
i0n
i0n

Reputation: 926

Weird error when trying to test method with argument in Mocha. Is it a bug or is it me?

Score: 0

Views: 536

Answers: 2

Read More
Mulan
Mulan

Reputation: 135415

How to test factory pattern using Mocha in Ruby?

Score: 1

Views: 591

Answers: 1

Read More
sakovias
sakovias

Reputation: 1434

How to mock associated objects in Rails?

Score: 0

Views: 64

Answers: 1

Read More
thebenman
thebenman

Reputation: 1621

Using instance_of parameter matcher in mocha

Score: 0

Views: 501

Answers: 1

Read More
JSBach
JSBach

Reputation: 4747

How do I verify the number of elements and content of an array using ParameterMatchers?

Score: 1

Views: 237

Answers: 1

Read More
LateCoder
LateCoder

Reputation: 2283

Can't stub with mocha in ruby on rails test

Score: 2

Views: 1909

Answers: 1

Read More
sites
sites

Reputation: 21815

Mocha. expects without stubbing

Score: 2

Views: 123

Answers: 0

Read More
Martynas
Martynas

Reputation: 2565

Ruby. Mocking in RSpec

Score: 1

Views: 7042

Answers: 2

Read More
PreviousPage 4Next