Hey David,
I experienced similar problems as depicted above in other projects now
as well.
E.g. a wrong-used stub in an it-block overwrote stubs established in
helper functions for the whole spec-file etc.
This was a mocha-related problem, I know that for sure cause when I
swapped out mocha for rs
Hi,
I've created a cucumber test to test a metal I've created that
connects to a third party.
I'm using rspec mocks to create a stub for the 3 party. It seems
that stubbing/mocking isn't extending all the way to the metal. It
calls the read object and not the stub.
Any idea of how I can ma
I want to use rspec with my application where we don't have database.
I want to know how to use fixtures with out ORM layer.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Mar 17, 2010, at 6:25 PM, harinionrails wrote:
> I want to use rspec with my application where we don't have database.
The answer to this is in spec/spec_helper.rb (lines 16 - 21), which is
generated when you run "script/generate rspec" in the root of your rails app:
http://github.com/dcheli
On Thursday 18 March 2010 00.25:51 harinionrails wrote:
> I want to use rspec with my application where we don't have database.
> I want to know how to use fixtures with out ORM layer.
Probably those fixtures are now called 'stubs'.
___
rspec-users mailin
On Mar 17, 2010, at 6:05 PM, Nash wrote:
> Hi,
>
> I've created a cucumber test to test a metal I've created that
> connects to a third party.
>
> I'm using rspec mocks to create a stub for the 3 party. It seems
> that stubbing/mocking isn't extending all the way to the metal. It
> calls the r
I am writing some specs related to permissions for different kinds of
users. Every user has some common examples to test in many different
specs. For example, all users can view, and edit their profile.
Also, all users can view their own "history." So I have two spec
files, say profile_controlle
On Mar 18, 2010, at 4:18 PM, drewB wrote:
> I am writing some specs related to permissions for different kinds of
> users. Every user has some common examples to test in many different
> specs. For example, all users can view, and edit their profile.
> Also, all users can view their own "history
You can also use WebMock http://github.com/bblimke/webmock
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
I get that you create dependencies on a normal rake task like this:
task :codeGen do
# do the code generation
end
task :compile => :codeGen do
# do the compilation
end
but what is the syntax for a specTask?
Spec::Rake::SpecTask.new('task1a') do |t|
# t.spec_files = ...
end
You can cre
On Mar 18, 2010, at 12:12 PM, jw wrote:
> I get that you create dependencies on a normal rake task like this:
>
> task :codeGen do
> # do the code generation
> end
>
> task :compile => :codeGen do
> # do the compilation
> end
>
>
> but what is the syntax for a specTask?
>
> Spec::Rake::Spec
11 matches
Mail list logo