Displaying 20 results from an estimated 10000 matches similar to: "rspec story directory structure"
2007 Dec 31
4
How to run stories with `spec'' command?
Hi, all!
I have a story steps array.rb and the story array.story. I
can run it with
ruby array.rb
But when I execute
spec array.rb
nothing happened. I''m wondering how can I use spec command to
execute stories? (executing examples is OK) Or maybe another
question. If I have to run stories with `ruby'' command, how
can I choose the output format? (I think there''s
2008 Jan 18
2
CC.rb and RSpec
When trying to configure a rspec 1.1.2 based app in CC.rb, I came
across the following:
/home/bryan/cruisecontrolrb-1.2.1/projects/support-engines/work/vendor/
plugins/rspec_on_rails/lib/spec/rails/../../../../rspec/lib/spec/
runner/options.rb:218:in `files_to_load'': File or directory not found:
cc:build (RuntimeError)
from
2009 Mar 15
0
rspec 1.2.0 Released
rspec version 1.2.0 has been released!
Behaviour Driven Development for Ruby.
Changes:
### Version 1.2.0
WARNINGS:
* If you use the ruby command to run specs instead of the spec command, you''ll
need to require ''spec/autorun'' or they won''t run. This won''t affect you if
you use the spec command or the Spec::Rake::SpecTask that ships with
2007 May 10
1
RSpec 0.9.4
RSpec 0.9.4 has just been released. Gems haven''t rsync''ed around the
globe yet, so you might have to wait a few hours to install it.
The big news this time is Spec::Ui 0.2.0, which has been released
along with RSpec core. This RSpec extension gives you custom Watir
matchers (custom Selenium-RC matchers are not implemented yet).
Moreover, it comes with a custom KICK ASS formatter
2011 Sep 14
1
rspec and should have_many through
Hi,
Anyone can help me with rspec shoulda validations please.
I can''t get the syntax right for these validations. Please correct me
it { should have_one :tradable, :through => :trade_order}
it { should belong_to :source, :polymorphic => true }
it { should have_many :transfers, :as => :source }
this is for Rspec 2, rails 3.1,
gem "rspec-rails"
gem
2008 Jun 15
2
RSpec story failing because of routing error on "/"
Greetings!
Here''s the problem.
When running tests on the restful_authentication plugin, I am getting
a routing error on "/".
Which I don''t really understand, because the route "/" certainly does
exist as I can confirm when I run ./script/server and point my browser
at http://localhost:3000/
Here is an example of the error I am getting when I run
2011 Jul 28
2
RSpec, shoulda-matchers and Rails model attributes validations
I was trying out RSpec framework in a project and got stopped doing the unit
test of a model. In particular, doing the test for the associations and the
ActiveRecord validations.
I started writing the validations but my tests didn''t look DRY at all.
Before refactoring the tests checked out and look for other people
solutions.
I found out shoulda-matchers and Shoulda (which if I
2011 Aug 09
0
Devise, RSpec and Webrat
My app is builded with rails 2.3.12, rspec-rails 1.3.2, webrat 0.7.3.
My spec_helper.rb
ENV["RAILS_ENV"] ||= ''test''
require
File.expand_path(File.join(File.dirname(__FILE__),''..'',''config'',''environment''))
require ''spec/autorun''
require ''spec/rails''
require
2007 Nov 26
0
custom matcher tutorial
I wrote some quick notes up on a custom matcher I wrote around a
pattern that I am using constantly.
http://smartic.us/2007/11/26/rspec-matcher-for-active-record-associations
You could use it as a custom matcher tutorial for the uninitiated or
as a possible solution for validations specs for the more advanced.
Or you could use it to school me, and explain why my code sucks :)
bryanl
2009 Mar 15
0
rspec-rails 1.2.0 Released
rspec-rails version 1.2.0 has been released!
* <http://rspec.info/>
* <http://wiki.github.com/dchelimsky/rspec>
* <http://wiki.github.com/dchelimsky/rspec/rails>
* <http://wiki.github.com/dchelimsky/rspec/upgrades>
Behaviour Driven Development for Ruby on Rails.
Changes:
### Version 1.2.0
IMPORTANT INFORMATION: Due to changes in Rails-2.3, there are some changes
in
2011 Sep 05
0
undefined method `dependent' - rspec and shoulda
hello,
Getting this error when using shoulda and rspec for model tests.
my gemfile
...
gem "shoulda-matchers"
..
spec file
..
it { should have_many(:balances).dependent(:destroy) }
error:
User shoulda validations
Failure/Error: it { should
have_many(:balances).dependent(:destroy) }
NoMethodError:
undefined method `dependent'' for
2010 Jun 28
1
have_tag matcher in rspec 2?
I always assumed have_tag was part of rspec, but it''s not in rspec 2,
and looking now I don''t see it in rspec 1 either. Webrat defines it, but
that seems like a coincidence (I tried requiring webrat/core/matchers to
no avail).
Is it depricated, not yet implemented, or does it work for everyone
else?
My project is from scratch, rspec-rails 2b13, using generated
spec_helper.
2008 May 27
4
Failing rspec story not causing a CruiseControl.rb build to fail?
We''ve just added rspec stories to our CruiseControl.rb build. When there''s a failing scenario we see the failure in the log output, but it doesn''t cause the CruiseControl build to fail. We''ve also just upgraded to the latest rspec version, 1.1.4, which fixes rspec bug 228, but the CC.rb build is still passing.
Has anyone got failing rspec stories making
2008 Jun 02
2
Cannot log in/authenticate within RSpec Story
I''ve been slamming my head against a wall for a while now, and would
like some help. I believe this is session related.
I have a story that looks like:
--------------------------------------------------
Given that a post exists
And I am logged in
When I visit the post details page
Then there should be a link to add a new comment
2006 Dec 13
1
rspec with rails controllers in subdirectories
Does the rspec rails plugin support controllers in subdirectories
under app/controller?
2007 Dec 29
5
./script/story command
Below I''ve pasted a ./script/story command I''ve been using for about a
week. It has three modes of operation:
1. ./script/story with no arguments will run all *.story files in the story path
2. ./script/story with a path or glob will run the specified stories
3. If input is passed in via STDIN, it runs that text as a story. This
opens up story running via a simple interface
2007 Nov 25
2
Rails sessions in plain text stories
Ok, maybe I''m being particularly thick, but I''ve been trying to find
the solution to this for a couple of hours now and I just can''t seem
to be able to do it...
I''m trying to write a step as such:
Given("user $email is logged in") do |email|
user = User.find_by_email(email)
session[:user_id] = user.id
end
This is the way it would
2011 Nov 06
0
rspec-2.8.0.rc1 is released
http://blog.davidchelimsky.net/2011/11/06/rspec-280rc1-is-released/
See the blog post for more information, but highlights include:
1. tag overrides
Now you can set tag/filter defaults in .rspec:
--tag ~javascript
or in RSpec.configure (in spec_helper.rb):
RSpec.configure {|c| c.filter_run_excluding :javascript}
and then override that from the command line when you want to run the
2009 Oct 06
3
rspec-rails 1.2.9 Released
rspec-rails version 1.2.9 has been released!
* <http://rspec.info>
* <http://rubyforge.org/projects/rspec>
* <http://github.com/dchelimsky/rspec-rails>
* <http://wiki.github.com/dchelimsky/rspec/rails>
* <rspec-devel at rubyforge.org>
Behaviour Driven Development for Ruby on Rails.
Changes:
### Version 1.2.9 / 2009-10-05
* enhancements
* added route_to and
2007 Feb 17
0
RSpec 0.8.0-RC1
The RSpec Development Team is pleased to announce Release Candidate 1
of RSpec 0.8.0.
Since we''re doing a Release Candidate and we don''t really have a
separate gem server set up, everything you need is tagged in
subversion. See the install instructions below.
As we noted a few weeks back, this release comprises a new approach to
RSpec''s expectation syntax using