I am new to rspec and am finding it all a bit daunting at the moment.
I'd like to be able to adopt a bdd approach to my development but I'm
still at the stage of trying to get my head around rspec concepts so
I'm committing the cardinal sin of coding first and then writing
tests.
I am using the fo
I've posted this to the Authlogic group but things seem a little quiet, so
perhaps someone here can help:
'm testing Authlogic 2.1.6, running under Rails 3.0.1., using rspec
2.1.0
I have the following:
user.rb
class User < ActiveRecord::Base
acts_as_authentic do |config|
config.login_field
Ruby 1.9.2, Rails 3.0.3, Rspec-rails 2.2.0
I have:
Factory.define :season_date do |f|
f.season_date Date.new(2011,9,24)
f.date_type "season_start"
end
RSpec.configure do |config|
config.mock_with :rspec
end
Factory.define :season_date do |f|
f.season_date Date.new(2011,9,24)
f.date_ty
st - I just put that in when things
went wrong.
Thanks for responding
On Dec 4, 2:25 am, David Chelimsky wrote:
> On Dec 3, 2010, at 11:07 AM, Martin Hawkins wrote:
>
>
>
>
>
> > Ruby 1.9.2, Rails 3.0.3, Rspec-rails 2.2.0
>
> > I have:
>
> > Fa
e(["date_type = ?", "start_date"]).first
end
end
Agreed re redundant test - I put that in when the 'real' test failed.
On Dec 4, 2:25 am, David Chelimsky wrote:
> On Dec 3, 2010, at 11:07 AM, Martin Hawkins wrote:
>
>
>
>
>
> > Ruby 1.9.2
I can't believe I did that either...
Doh!
On Dec 4, 4:04 pm, David Chelimsky wrote:
> On Sat, Dec 4, 2010 at 8:34 AM, Martin Hawkins
> wrote:
> > I can't believe I did that...
> > No, there is only one Factory; copy and paste error. The SeasonDate
> &
I had this problem too. I am in a project that has 1.9.2 and a similar
list of gems.
I'm afraid I chickened out of using autotest and use watchr instead.
On Dec 6, 9:49 pm, Nicholas Wieland
wrote:
> Hi guys, I'm not entirely sure this is a problem with RSpec or cucumber, for
> sure it's happenin
I agree with you that to create a major release for this too grand.
Suitable fanfare and documentation is fine.
On 18 January 2011 14:15, David Chelimsky wrote:
> Hi all,
>
> Since the release of rspec-2.0, I've been following Rubygems' rational
> versioning [1] as closely as possible. Patch rel