Home
Question
Login
TAG
rspec
ruby - rspec: How to stub an instance method called by constructor? - Stack Overflow
class A
def initialize
@x = do_something
end

def do_something

ruby
rspec
stub
admin
11 Months ago
29
0
Rails: calling a model class in a library - Stack Overflow
I'm trying to verify that a parameter is an instance of a specific class in Rails:

def schedul
rubyonrails
modelviewcontroller
rspec
admin
12 Months ago
20
0
Rails: calling a model class in a library - Stack Overflow
I'm trying to verify that a parameter is an instance of a specific class in Rails:

def schedul
rubyonrails
modelviewcontroller
rspec
admin
12 Months ago
18
0
ruby - rspec: How to stub an instance method called by constructor? - Stack Overflow
class A
def initialize
@x = do_something
end

def do_something

ruby
rspec
stub
admin
12 Months ago
14
0
ruby - rspec: How to stub an instance method called by constructor? - Stack Overflow
class A
def initialize
@x = do_something
end

def do_something

ruby
rspec
stub
admin
12 Months ago
13
0
ruby - How do I enable color when running RSpec through RStakeout? - Stack Overflow
When using topfunky's RStakeout, the color in the result of the spec command is lost. This happens even when ad
ruby
rspec
admin
2022-6-9
8
0
How do I test Rails block helpers with rSpec - Stack Overflow
In my views I use a helper that takes arbitrary HTML as a block:

<% some_block_helper do %&a
rubyonrails
rspec
helper
admin
2022-5-31
7
0
How do I test Rails block helpers with rSpec - Stack Overflow
In my views I use a helper that takes arbitrary HTML as a block:

<% some_block_helper do %&a
rubyonrails
rspec
helper
admin
2022-5-31
9
0
ruby on rails - How can I add multiple should_receive expectations on an object using RSpec? - Stack Overflow
In my Rails controller, I'm creating multiple instances of the same model class.I want to add some RSpec expe
rubyonrails
rspec
admin
2022-5-31
6
0
ruby on rails - How can I add multiple should_receive expectations on an object using RSpec? - Stack Overflow
In my Rails controller, I'm creating multiple instances of the same model class.I want to add some RSpec expe
rubyonrails
rspec
admin
2022-5-31
8
0
testing - How to best write an RSpec custom matcher to test access control in a Rails app - Stack Overflow
OK, so instead of writing a whole bunch of access control specs, and duplicating them across many of my spec files, I&am
rubyonrails
testing
rspec
admin
2022-5-22
9
0
testing - How to best write an RSpec custom matcher to test access control in a Rails app - Stack Overflow
OK, so instead of writing a whole bunch of access control specs, and duplicating them across many of my spec files, I&am
rubyonrails
testing
rspec
admin
2022-5-22
8
0
How do I test Rails block helpers with rSpec - Stack Overflow
In my views I use a helper that takes arbitrary HTML as a block:

<% some_block_helper do %&a
rubyonrails
rspec
helper
admin
2022-5-22
5
0
How to test with RSpec a Rails plugin using "link_to" and "current_page?" - Stack Overflow
I'm writing a Rails plugin that builds up a menu in a view. I'm using link_to to build the link and cu
rubyonrails
plugins
rspec
admin
2022-5-21
11
0
How to test with RSpec a Rails plugin using "link_to" and "current_page?" - Stack Overflow
I'm writing a Rails plugin that builds up a menu in a view. I'm using link_to to build the link and cu
rubyonrails
plugins
rspec
admin
2022-5-21
11
0
ruby on rails - RSpec Stories and Specs: When to use what? - Stack Overflow
So I want to start using RSpec stories, but I am not sure where writing controller, model and view specs fit in. &#x
rubyonrails
ruby
rspec
bdd
rspecstories
admin
2022-5-8
16
0
ruby on rails - RSpec Stories and Specs: When to use what? - Stack Overflow
So I want to start using RSpec stories, but I am not sure where writing controller, model and view specs fit in. &#x
rubyonrails
ruby
rspec
bdd
rspecstories
admin
2022-5-8
15
0
ruby on rails - Rspec - problems with switching from plugins to gems - Stack Overflow
When dropping the use of rspec and rspec-rails plugins and switching to the gem versions instead, is there anything extr
rubyonrails
ruby
rubygems
rspec
gem
admin
2022-5-8
19
0
ruby on rails - Rspec - problems with switching from plugins to gems - Stack Overflow
When dropping the use of rspec and rspec-rails plugins and switching to the gem versions instead, is there anything extr
rubyonrails
ruby
rubygems
rspec
gem
admin
2022-5-8
23
0
ruby on rails - Rspec - problems with switching from plugins to gems - Stack Overflow
When dropping the use of rspec and rspec-rails plugins and switching to the gem versions instead, is there anything extr
rubyonrails
ruby
rubygems
rspec
gem
admin
2022-5-8
21
0
1
2
3
»