Hi all,
I'm new to this list and new to RSpec so I have been trying out RSpec the
last couple of days and I find it very a natural way of testing. So first of
all thanks for providing this framework.
Now, I have written some tests for my controllers and models and I saw
myself writing similar
On Wed, Oct 8, 2008 at 6:01 AM, Jeroen van Dijk
[EMAIL PROTECTED] wrote:
Hi all,
I'm new to this list and new to RSpec so I have been trying out RSpec the
last couple of days and I find it very a natural way of testing. So first of
all thanks for providing this framework.
Now, I have
Is it possible to use spec fixtures with Cucumber, and if so, how?
Thanks,
Daniel Higginbotham
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Brian Takita wrote:
On Sun, Sep 21, 2008 at 11:17 AM, Joseph Wilk [EMAIL PROTECTED] wrote:
I've been doing further work on adding the Test Spy to the RR mocking
framework.
Awesome! Do you have a clone available?
I'm not quite ready to push my work up to Github. I've been trying lots
aidy lewis wrote:
Hi,
Today I installed the latest cucumber gem.
For some reason, the actual current step file and step line number is
being printed to the right of the step in the console.
E.g.
And enters into job reference# steps/publish_content_steps.rb:134
Is this a switch I
Hi,
Today I installed the latest cucumber gem.
For some reason, the actual current step file and step line number is
being printed to the right of the step in the console.
E.g.
And enters into job reference# steps/publish_content_steps.rb:134
Is this a switch I can turn off?
Aidy
On Wed, Oct 8, 2008 at 6:56 AM, aidy lewis [EMAIL PROTECTED] wrote:
Hi,
Today I installed the latest cucumber gem.
For some reason, the actual current step file and step line number is
being printed to the right of the step in the console.
E.g.
And enters into job reference#
On Wed, Oct 8, 2008 at 3:16 PM, Daniel Higginbotham
[EMAIL PROTECTED] wrote:
Is it possible to use spec fixtures with Cucumber, and if so, how?
Google for cucumber fixtures
http://www.ruby-forum.com/topic/165215
http://www.ruby-forum.com/topic/165777
Thanks,
Daniel Higginbotham
--
Posted
aslak hellesoy wrote:
On Wed, Oct 8, 2008 at 3:16 PM, Daniel Higginbotham
[EMAIL PROTECTED] wrote:
Is it possible to use spec fixtures with Cucumber, and if so, how?
Google for cucumber fixtures
http://www.ruby-forum.com/topic/165215
http://www.ruby-forum.com/topic/165777
Yep, I've
All,
I have some experience with Rspec from about a year ago. At that time,
there was a gem and a plugin, and a Rspec on Rails plugin.
Should I only be using the gem?
With the 1.1.8 gem, if I try to do rake rspec in my Rails app.,
nothing happens. Do I need to use the Rspec Rails plugin
With Rails, is rake spec supposed to automatically run under the test
environment? I have to do rake spec RAILS_ENV=test in order to get
the environments/test.rb file to load.
Also, are the standard Test::Unit fixtures automatically loaded before
each test in each spec file? This appears to
I, the OP, meant rake spec. Sorry for the confusion.
Craig Demyanovich wrote:
On Wed, Oct 8, 2008 at 3:09 PM, Pat Maddox [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
To OP: you said that rake spec doesn't do anything...did you run
script/generate rspec to get the rspec rake
On Oct 8, 2008, at 6:26 PM, Wes Gamble wrote:
I'm trying to debug what I suspect is a case where spec_helper.rb is
not
being executed.
I put a puts statement inside the Spec::Runner.configure do |config|
block, and I can't ever see the printout.
When does spec_helper.rb get run during
Scott Taylor wrote:
On Oct 8, 2008, at 6:26 PM, Wes Gamble wrote:
I'm trying to debug what I suspect is a case where spec_helper.rb is not
being executed.
I put a puts statement inside the Spec::Runner.configure do |config|
block, and I can't ever see the printout.
When does spec_helper.rb
Wes Gamble [EMAIL PROTECTED] writes:
Scott Taylor wrote:
On Oct 8, 2008, at 6:26 PM, Wes Gamble wrote:
I'm trying to debug what I suspect is a case where spec_helper.rb is not
being executed.
I put a puts statement inside the Spec::Runner.configure do |config|
block, and I can't ever see
Zach Dennis wrote:
I use seed_fu with cucumber.
http://github.com/mbleigh/seed-fu/tree
To load them I use the following my features/steps/env.rb. I reload
them for every scenarios:
Before do
ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test'])
Daniel Higginbotham [EMAIL PROTECTED] writes:
Zach Dennis wrote:
I use seed_fu with cucumber.
http://github.com/mbleigh/seed-fu/tree
To load them I use the following my features/steps/env.rb. I reload
them for every scenarios:
Before do
On Wed, Oct 8, 2008 at 3:41 PM, Wes Gamble [EMAIL PROTECTED] wrote:
Zach,
Zach Dennis wrote:
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
# from the project root directory.
ENV[RAILS_ENV] = test
require File.expand_path(File.dirname(__FILE__) +
On Wed, Oct 8, 2008 at 5:58 PM, Pat Maddox [EMAIL PROTECTED] wrote:
Wes Gamble [EMAIL PROTECTED] writes:
Scott Taylor wrote:
On Oct 8, 2008, at 6:26 PM, Wes Gamble wrote:
I'm trying to debug what I suspect is a case where spec_helper.rb is not
being executed.
I put a puts statement
I am trying to figure out how to properly test a view when part of the
view is is protected with a role check % if current_user.admin? %..
How do I force a log in or mock the current user. I need to do it in a
DRY way as this is used throughout the system checking various
privileges.
OK, got it.
I have a follow-up question though. If a given spec DID NOT require
spec_helper.rb, doesn't that imply that the spec would be run against
the Rails development environment.
I just did a test where I printed out the configuration of one of my
classes DB connnections (e.g.
David Chelimsky wrote:
On Wed, Oct 8, 2008 at 3:41 PM, Wes Gamble [EMAIL PROTECTED] wrote:
Zach,
Zach Dennis wrote:
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
# from the project root directory.
ENV[RAILS_ENV] = test
require
On Wed, Oct 8, 2008 at 6:40 PM, Wes Gamble [EMAIL PROTECTED] wrote:
OK, got it.
I have a follow-up question though. If a given spec DID NOT require
spec_helper.rb, doesn't that imply that the spec would be run against
the Rails development environment.
Not necessarily. Depends on what was
On Wed, Oct 8, 2008 at 6:42 PM, Wes Gamble [EMAIL PROTECTED] wrote:
David Chelimsky wrote:
On Wed, Oct 8, 2008 at 3:41 PM, Wes Gamble [EMAIL PROTECTED] wrote:
Zach,
Zach Dennis wrote:
# This file is copied to ~/spec when you run 'ruby script/generate
rspec'
# from the project root
I just did a test where I ran one spec and deep deep within the code
under test, I printed out the DB connection of the AR class of a given
object, like so:
puts invoice.class.connection.inspect
My spec requires spec_helper.rb, which supposedly sets the Rails
environment to be test.
However,
On 2008-10-08, at 19:50, Wes Gamble wrote:
I just did a test where I ran one spec and deep deep within the code
under test, I printed out the DB connection of the AR class of a given
object, like so:
..snip..
which shows that I am hitting my development database. Why would I
see
this
On Wed, Oct 8, 2008 at 6:31 PM, Donald French [EMAIL PROTECTED] wrote:
I am trying to figure out how to properly test a view when part of the view
is is protected with a role check % if current_user.admin? %.. How do I
force a log in or mock the current user. I need to do it in a DRY way as
David Chelimsky wrote:
On Wed, Oct 8, 2008 at 3:41 PM, Wes Gamble [EMAIL PROTECTED] wrote:
Zach,
Zach Dennis wrote:
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
# from the project root directory.
ENV[RAILS_ENV] = test
require
Yes.
Nick Hoffman wrote:
On 2008-10-08, at 19:50, Wes Gamble wrote:
I just did a test where I ran one spec and deep deep within the code
under test, I printed out the DB connection of the AR class of a given
object, like so:
..snip..
which shows that I am hitting my development database.
On Wed, Oct 8, 2008 at 1:15 PM, Matt Wynne [EMAIL PROTECTED] wrote:
We have a few unfinished examples in our code of the form
it should and does do something do
# stuff
end
it should do something someday
it should and does do something else do
30 matches
Mail list logo