On Mar 15, 2010, at 11:16 PM, Chris DiMartino wrote:
> I'm having trouble getting rspec to allow me to test my Comparable class. I
> would like to test the <=> method, but rspec is giving me unexpected results:
>
> @hand = Hand.new('R')
> @other_hand = Hand.new('S')
> @hand.should be > @other_h
I'm having trouble getting rspec to allow me to test my Comparable class. I
would like to test the <=> method, but rspec is giving me unexpected
results:
@hand = Hand.new('R')
@other_hand = Hand.new('S')
@hand.should be > @other_hand
expected > #, got #
Shouldn't that test be checking for the c
emdub wrote:
> I think what is easiest/cleanest in the code should prevail :) I
> personally like "shared_examples_for", but can easily adapt to
> whatever decision is made.
>
> On a semi-related note. Where do I require my shared specs so
> it_should_behave_like can find my shared example groups?
I think what is easiest/cleanest in the code should prevail :) I
personally like "shared_examples_for", but can easily adapt to
whatever decision is made.
On a semi-related note. Where do I require my shared specs so
it_should_behave_like can find my shared example groups? Is there any
convention
Hello Everyone,
I am having problem running Webrat steps through Firefox using
Selenium.
I doesn't give me any error, but it never does anything.
Well, I am using Windows XP (I know)
Here are the gems I am using:
cucumber (0.6.2)
cucumber-rails (0.3.0, 0.2.4)
database_cleaner (0.5.0, 0.4.3)
m
thanks for your reply David,
what worried me (well, got me thinking) was having to put on A's specs too
much knowledge about when B's attributes were valid or not. I ended up doing
more or less what you expose, but only:
* using nil as the invalid input
* using one valid combination for the valid o
On Fri, Mar 12, 2010 at 7:45 AM, Joaquin Rivera Padron
wrote:
> hi there,
> I have a Rails model A, that has_one model B, model A have a method called
> save_nested_b that:
> * context 'invalid B params'
> ** context 'no nested B exists' => do nothing
> ** context 'nested B exists' => remove it
On Mon, Mar 15, 2010 at 3:48 AM, giorgian wrote:
> Hi,
>
> I wanted to test something like this:
>
> # /lib/rest_verification.rb
> module RestVerification
> def self.included(base) # :nodoc:
> base.extend(ClassMethods)
> end
>
> module ClassMethods
> def verify_rest_actions
> verify
On Mon, Mar 15, 2010 at 6:54 AM, jollyroger
wrote:
> Hey guys,
>
> I'm having a serious rspec-problem at the moment:
>
> I keep getting strange, empty validation errors when I run the whole
> spec-suite:
>
> #
> 1)
> ActiveRecord::Rec
Hi,
I wanted to test something like this:
# /lib/rest_verification.rb
module RestVerification
def self.included(base) # :nodoc:
base.extend(ClassMethods)
end
module ClassMethods
def verify_rest_actions
verify :method => :post, :only => [:create], :redirect_to =>
{ :action =>
On Mon, Mar 15, 2010 at 7:24 AM, jollyroger
wrote:
> Hey guys,
>
> unfortunately I've got one more issue with rspec right now.
>
> It seems like rspec isnt properly cleaning up the database after each
> spec.
>
> I have the following spec:
>
> ##
Hey guys,
unfortunately I've got one more issue with rspec right now.
It seems like rspec isnt properly cleaning up the database after each
spec.
I have the following spec:
###
describe ProfilesController do
describe "GET 'index'
Hey guys,
I'm having a serious rspec-problem at the moment:
I keep getting strange, empty validation errors when I run the whole
spec-suite:
#
1)
ActiveRecord::RecordInvalid in 'LikesController DELETE destroy' should
change like-cou
13 matches
Mail list logo