I have a model that generates the authorization_rules.rb for
declarative_auth. I am not sure how I can go about testing the model -
apart from anything I don't want my test to over-write the file - so,
er, I am not quite sure how to go about it.
I *could* have some sort of sniffer in my model to s
I've been looking into rspec-ing delayed_jobs lately, and I found a few
resources on testing jobs that execute right away. But I couldn't find any
that delt with testing a job that is delayed a week in the future, for
example.
Does anyone have any good resources on this? I'd appreciate it.
Thanks
> I just got back from the Great Lakes Ruby Bash. They had several good
> presentations, two specific to BDD and Cucumber. I also talked to
> several CEOs and devs afterwards, and the overall takeaway I gathered
> was a shift to less RSpec and more Cucumber. Some people even claimed
> a 90/10 split
On Wed, Apr 21, 2010 at 7:05 PM, Pat Maddox wrote:
> Cucumber features are the best tool I know of for capturing requirements
> from my customer. RSpec specs are the best tool I know of for communicating
> intent and gauging code quality among the developer team.
>
> I'm not sure how exactly you'
When I run the a controllers spec test on it's own I get just what I expect.
But when I run the same tests with: rake spec I get some strange errors because ApplicationHelper ends up getting mixed into my
ActiveRecord model instances.
Is this normal? It seems nutty to me -- maybe it's a proble
I'm trying to mark an example as pending w/rspec2 & rails3, but I'm getting:
Failure/Error: pending
undefined local variable or method `pending' for
#
Is 'pending' pending for rspec2? ;-)
Thanks,
John
___
rspec-users mailing list
rspec-users@rubyforge.
Yeah, just that now you define your entire example as pending. So instead of:
it "does something" do
pending
this_will_fail
end
You now do
pending "does something" do
this_will_fail
end
Cheers
On Thu, Apr 22, 2010 at 7:11 PM, John Dell wrote:
> I'm trying to mark an example as pending w
>
> On Thu, Apr 22, 2010 at 7:11 PM, John Dell wrote:
>> I'm trying to mark an example as pending w/rspec2 & rails3, but I'm getting:
>>
>> Failure/Error: pending
>> undefined local variable or method `pending' for
>> #
>>
>> Is 'pending' pending for rspec2? ;-)
>>
>> Thanks,
>> John
On Apr 2
+1
BTW, here is the URL for his talk:
http://www.benmabey.com/2009/03/14/slides-from-outside-in-development-with-cucumber/
It is back in the webrat days (pre-capybara). And the World() method
is simpler nowadays.
Cheers,
Ed
Ed Howland
http://greenprogrammer.wordpress.com
http://twitter.com/e
2010/4/22 Nicolás Sanguinetti
> Yeah, just that now you define your entire example as pending. So instead
> of:
>
> You now do
>
> pending "does something" do
> this_will_fail
> end
>
Thank you! I like it, very clean.
Is that documented somehwere? I couldn't find it.
John
___
On Apr 22, 2010, at 9:57 AM, Zach Moazeni wrote:
> I'll jump in here as I was one of the guys who presented a shift in my
> testing strategies at the Great Lakes Ruby Bash.
>
> To give some context, I've built projects that were very focused on isolation
> tests that used Rspec and Mocks to ass
solved ...
Running the ApplicationHelper spec tests mixed the ApplicationHelper methods
into Object.
Actually I don't remember making the helper being tested or the spec ;-) Might
have been generated by restful authentication ...
Here's what's in spec/helpers/application_helper_spec.rb (which
12 matches
Mail list logo