ntacts/shipping_label")
end
-- but that gives me:
'Admin::ShippingLabelsController should render a pdf file' FAILED
expected "admin/contacts/shipping_label", got nil
/Users/patrick/coding/rails/matthew/spec/controllers/admin/shipping_labels_controller_spec.rb:11:
than
I am sorry for being so confused If you can
break this down, I'd really appreciate it.
Thank you.
Patrick J. Collins
http://collinatorstudios.com
On Sat, 20 Mar 2010, Nick Hoffman wrote:
> Hey Patrick.
>
> > I have this in my controller action:
> >
> &
; "mock_model" and "should_receive"
since they all are "mocking"...?
Patrick J. Collins
http://collinatorstudios.com
On Sat, 20 Mar 2010, David Chelimsky wrote:
> On Sat, Mar 20, 2010 at 2:28 AM, Patrick J. Collins
> wrote:
> > 4. You do .stub! ..
AR::base
def lowered_name
name.downcase
end
def upper_name
name.upcase
end
def numbers
rand(id)
end
def pdf
# return some prawn pdf object
end
...
If you could do that for me, it would be incredibly awesome...
Thank you.
Patrick J. Collins
http://collinatorstudios.com
> started usi
Ok,
So... My first attempt at specing a method in my photo model didn't go so
well..
http://gist.github.com/341447
Both of these tests are failing, and I am not even sure if I am structuring
this anywhere near correct or not...
In other words... HELP!!!!!!
Patrick J. Collins
what am I doing wrong as far as my spec goes, because I am getting:
'PhotoAlbum saving a photo should set the cover of the album to the curent
photo when 'album cover' is checked' FAILED
expected: #,
got: nil (using ==)
...
Thank you in advance for your patience and guida
iations/association_proxy.rb:217:in
`method_missing'
/Users/patrick/coding/rails/xyz/app/models/vcard.rb:164:in `card_photo'
Any ideas?
Thanks..
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
I changed .should_receive to .stub! and
then the errors went away.
Not sure if that was the right thing to do in that case.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
s to be intercepted by
.should_receive is dependent on the number of addresses in a vcard.
This was the problem I didn't know how to address, and using stub! resolved it,
but like I said-- I didn't know if there's a more appropriate way to do it.
Patrick J.
photo = Photo.create(...)
to
Photo.create(...)
then the spec passes... It's when that @contact.photo = is there that it
breaks.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
require initializer methods (setup/setup_something_else) to be called.
So I am just wondering, what is the proper technique to test these
private mini_methods?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-user
When you test the
> higher level methods you can mock this stuff. When you test the small
> methods you should call them directly.
So is it bad practice then to use private methods? I have a habit of doing
that-- but from what you're saying there is no way to test those things
individ
> Also, you should directly test the implementation of the Vcard outside of
> this spec (i.e. in it's own spec)
Could you explain what you mean by that?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
method
end
def slave_method
foo
end
def foo=(new_foo)
@foo = new_foo
end
def foo
@foo
end
..... ? Is that the way to go???
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
gs that can be tested. Passing in a
variable is definitely less elegant than using an instance variable, and a
getter/setter is somewhat too (in my opinion).
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-use
_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
:
http://gist.github.com/383233
I solved my @contact.photo = problem by approaching it a different way...
Though I still wish someone could tell me what the deal was with that mock
expectation error. No one seemed to reply to that question...
Anyway, everything passes so I guess I can move on to the
m_count, 4)
ArgumentError Exception: wrong number of arguments (0 for 3)
(rdb:1) self
#
...
Can anyone please explain to me why this is behaving this way?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
r
spec that when I delete, the other one that failed now passes:
http://gist.github.com/386125
This is so weird, I would really love it if someone could shed some light on
this.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
now passes
all test.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
;should have a link" do
@foo.link.should match /href/
end
... But I get this error:
NoMethodError in 'FooRenderer should have a link'
undefined method `foo_path' for
#
... What can I include in my spec to get foo_path to be recognized?
Thank you.
Patr
> Whate versions of ruby, rspec, and rails are you using? Please make it a
> habit to include this information in queries like this.
ruby 1.8.7
rails 2.3.5
rspec 1.3.0
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
Thank you.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
what is different between the expected and got..
Is there perhaps a way to make it so that the actual differences have a
different foreground or background color in the terminal?
Thanks.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users
is a problem I have had to face over and over, and has proven to be quite
frustrating. The only solution I have found is to pass self into the method..
So if anyone has any other suggestions, I'd love to hear it.
Thank you.
Patrick J. Collins
http://collinatorstudios.com
_
- It's
actually in:
spec/helpers/renderers
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
class so that I won't have conflicts with
other instance variables...
I don't understand though why rake spec would fail but script/spec wouldn't...
Is there something different about the environment when rake spec is called?
Patrick J. Collins
http://
r bundle seem to like -d or --debug.. So I am totally
confused on this one...
Thanks.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
uot;
rake spec -d gives me:
"ambiguous option: -d"
rake spec --debug gives me no output at all...
thanks.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
> rake doesn't take arguments like that. Try 'rspec spec --debugger'.
Hmm, that gives no output at all.. I just get a bash prompt immediately
after entering 'rake spec --debugger'
Patrick J. Collins
http://collinatorstudios.com
___
> rspec, not rake:
Oops! I missed that.. So other than this debugger thing, are there any other
differences between rake spec and rspec spec?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
h
ts is identical between 'rake spec' and 'spec rspec'
Which I am assuming by your answer that it is. Rake spec runs a task that
probably just does: 'spec rspec' ?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-u
Hi everyone,
I just came across this post and was wondering if this is on target with how
RSpec works under the hood?
http://www.skorks.com/2011/02/a-unit-testing-framework-in-44-lines-of-ruby/
Patrick J. Collins
http://collinatorstudios.com
cursively calling itself.
In that post's example, their definition of should simply returns self as they
described "it's just syntactic sugar to make the tests read better", but from
looking at RSpec's code, it seems like there's a lot more going on, but I
> but what if my method looks like:
>
> user = User.where("...")
> user2 = User.where("...")
User.should_receive(:where).with("...").and_return(...)
http://apidock.com/rspec/Spec/Mocks
Patrick J. Collins
http://collinatorstudios.com___
em manually with behavior driven development?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
ion, but--- is that
really worth doing?
Thank you in advance for your input.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
tion" do
fill_in :login, :with => @user.email
fill_in :password, :with => @user.password
click_button "login_button"
page.has_content?("Logged in successfully")
end
Then in your specs you can do:
describe User do
it_behaves_like &quo
test unit", and a
test/unit/foo_test.rb gets created..
.. Is there something I need to do to get rspec invoked?
Thanks.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.o
I am doing:
page.should have_xpath("//img[contains(@class, 'foobar')]", :count => 0)
but cucumber tells me:
expected xpath "//img[contains(@class, 'foobar')]" to return something
(RSpec::Expectations::ExpectationNotMetError)
... Shouldn&
ot;)))
end
that I want to use in both cucumber step definitions and rspec. Is there a
preferred place to store this code, or is it standard practice to just define
them in a module in config/inititalizers and include that in both cucumber's
env.rb and rspec's spec_helper.rb?
Thanks.
Pat
tifications.should_not be_blank
post.destroy
post.notifications.reload.should be_blank
end
end
etc...
Is there an ideal way to dynamically generate this for any models that respond
to notificaions so that I don't have redundant noisy tests?
Thanks.
Patrick J.
> Am I correct in understanding that the point of using let is that it can
> minimize database calls due to memoization?
>
> describe "#something" do
>
> let(:something) = Something.groovy_scope
and obviously I meant let(:something) { ... }, not =
(oops)
@something.first.y.should_not have_coolness
end
end
...
Is that the proper usage?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
arl
foo.wurd_up
end
end
vs.
describe "Foo" do
before :each do
@foo = Foo.new
end
it "seems just as tubular as the foo w/ let" do
@foo.bar
@foo.baz
end
it "seems just as gnarly as the foo w/ let" do
foo.gnarl
really would shine because
it would not require records to be repeatedly created...
Do you guys feel like before(:all) is just bad because of the possibility of a
method call in one example changing the state and therefore breaking future
examples and not having it be clear as to why..
I know I can do:
blah.should be_empty
or
blah.should have_key(:to_my_house)
...
But, is there a way to do:
str = "lmaonade omg rotfcopter!"
str.should start_with("lmao")
Or is it just best to do:
str.starts_with?("lmao").should be_true
?
Patrick J. Collin
> On Oct 10, 2011, at 8:17 PM, Patrick J. Collins wrote:
>
> > I know I can do:
> >
> > blah.should be_empty
> >
> > or
> >
> > blah.should have_key(:to_my_house)
> >
> > ...
> >
> > But, is there a way to do:
> &
So the rule is, any
predicate method that starts with "has_" can be replaced with "have_", and all
others would begin with "be_".
Got it Thanks!
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
seems that
my @foo ivar is non existant inside the inner context.. Is this the way
it's supposed to be?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
> > ... But I just tried doing this in RSpec with before :each, and it seems
> > that
> > my @foo ivar is non existant inside the inner context.. Is this the way
> > it's supposed to be?
>
> post the whole example
Nevermind.. I figured out what I was do
listic.
Is the best way to get a real-world view context in there to do something like:
Blah.new(ActionView::Base.new) ?
Or does RSpec have something magical already setup for this sort of thing?
Muchas Gracias.
Patrick J. Collins
http://collinatorstudios.com
___
this functionality is to do:
@context = ActionController::Base.new.view_context
then you can do @context.render, @context.content_tag, etc.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
t the window. Is there something I should be
doing with a custom matcher or something to test for case-indifferent text,
ignore whitespace and \n, and be quote indifferent?
Thanks.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
se
it deals with HTML. Am I totally on crack?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
ng the raw HTML?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
s Foo < Nameable
...
end
class Bar < Nameable
...
end
And then I can have a dedicated spec for Nameable and not worry about testing
that in Foo and Bar... But, I am not 100% crazy about that approach either.
Can anyone suggest a better way?
Thanks!
Patrick J. Collins
http://c
method have actual argument expectations.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
tialize(arg1)
...
end
end
class Bar
include NameBuilder
def initialize(arg1, arg2, arg3)
...
end
end
...
In this case, "described_class.new(nil, nil)" is not going to work out very
well.
Patrick J. Collins
http://collinatorstudios.com
st, binding.pry or debugger interrupts the test flow
and gives me access to the current scope of the debugger call.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
I could choose to go about this differently and use a real post
attribute-- but I am just curious if there is a way to isolate the testing of
this method and make #create not even connected in any way?
I was thinking originally that I should be able to do (prior to the post create
call):
PostsCont
_post).returns true
still gives me the same failure, unknown attribute: foo in 'new'... But,
manually testing stuff proves that exposed_for_post method IS being called, and
everything is working.. I just want an automated test to prove it.
I am totally stumped on this one...
Patr
y doing
something like:
fake_post = stub('Post', :save => true)
Post.stubs(:new).returns(fake_post)
But I still get that same failure.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
rify,
and I still get the same error. Seems so weird to me.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
e access to your application
controller's @current_user variable.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
m
confused why the lambda {}.change thing isn't working?
Thanks.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
est overwrite the mark helpful value of that constant like:
Event:SCORES[:mark_helpful] = { :reputation_change => 123 }
But that felt a little wrong so I chose to just rely on a class convenience
method to return the constant's value.
Any thoughts on these
. I believe you want to do
"message_path(message)" instead of "messages_path(message)"
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
ser created"
post = create_post(:user => user) # this will make an event record of type
"post created"
post.share!
Event.exists?(:event_type => "post shared").should be_true
end
... I'm just not sure what's the best way to go, and if there'
troller_spec.rb:8:in `do_post'
# ./spec/controllers/post_controller_spec.rb:77
# ./spec/controllers/post_controller_spec.rb:75
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
n any event, after reading what you wrote I got my test to pass by doing:
PostSharer.expects(:new).once.returns stub("Fake Post Sharer", :perform => true)
So this way delayed_job still can call perform on the fake object and everyone
is happy (especially me).
Pat
ObjectSpace.each_object(Motorcycle) do |o|
return o if o.name == name
end
end
Will return found object immediately or nil if nothing is found.
Patrick J. Collins
http://collinatorstudios.com
___
rspe
a motorcycle by name" do
...etc
end
end
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
lling::Integrations::Paypal::Notification.new(any_parameters)
# ./lib/paypal_param_processor.rb:43:in `send_email'
# ./spec/lib/paypal_param_processor_spec.rb:63
# ./spec/lib/paypal_param_processor_spec.rb:63
---
So, obviously my approach isn't so great. Can a
LPRC::Client.should_receive(:new3).with(options).and_return(client)
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
environments:
rake db:test:clone_structure
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
:on => :member
end
rake routes shows:
share_post POST /posts/:id/share(.:format) {:action=>"share",
:controller=>"posts"}
...
Why is it ignoring the :id parameter in my test and therefore blowing up?
Thanks.
Patrick J. Collins
http://collinatorstudios.
osts"}
So I don't see how that can be the case...
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
> Sorry, too quick to answer.
> Next clue is the fact that the RSpec error is ignoring your id attribute.
> try:
> post :share, :id => 42
> and see if that gets you past the current error
Yeah-- Unfortunatley I also had tried this and got the same result...
Patri
wiped clear?
Is that not the case?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
lts... I just
put that code back in spec_helper, and ran my specs and they fail again
with "email already taken". It seems to break unless I explicitly put:
User.all.map(&:destroy) in a before block
Is there any reason why DatabaseCleaner might not be working? I&
appropriate one.
Ah... Ok cool, all of the above info solved my problem.
Thanks!
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
> Would you like to do this?
>
> account.should_receive_chain(:users, :active, :first)
+1 from me!
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
ls.root for those two files fixed the problem:
# initializers/core_ext.rb
require "core_ext/array.rb"
require "#{Rails.root}/lib/core_ext/hash.rb"
require "core_ext/numeric.rb"
require "core_ext/float.rb"
require "#{Rails.root}/lib/
.0/lib/rspec/core/runner.rb:10:in
`block in autorun'
... Changing the filename app/admin/users.rb to app/admin/wtfs.rb
makes this error go away... so--- wtfs indeed!
incidentally if you are wondering what is this business with
confirmations_controller (in the stack trace), that just inherits from
> On Apr 6, 2012, at 11:21 AM, Patrick J. Collins wrote:
> > ... Changing the filename app/admin/users.rb to app/admin/wtfs.rb
> >
> > makes this error go away... so--- wtfs indeed!
On Fri, 6 Apr 2012, Justin Ko wrote:
> I'm pretty sure this is an issue with how Rai
ll see activesupport trying to
> handle that error with its `load_missing_constant` method. I assume it
> "searched" for a file named "users", because the constant was named "Users".
> WTF doesn't cause an error, because activesupport does
operly.
Is this possible?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
egration
tests?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Thu, 19 Apr 2012, David Chelimsky wrote:
> Try this:
>
> RSpec.configure do |c|
> c.after(:each, :type => :request) do
> save_and_open_page if example.exception
> end
> end
>
>
Thank you so much! That works perfect
t;>'; return false; }
Is there a better way to do this?
Thanks.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
ion my tests still are breaking because of some other undetermined
problems having to do with OpenStruct not being as "simple" of a
solution as I was hoping.
... AAGH!
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
ord no longer handles the setter/getter methods
for that column, and this issue goes away.
GH!
So I am out of testing hell now.. yay!
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
p125@my_app/gems/rspec-core-2.10.0/lib/rspec/core/runner.rb:69:in
`run'
#
/Users/patrick/.rvm/gems/ruby-1.9.3-p125@my_app/gems/rspec-core-2.10.0/lib/rspec/core/runner.rb:10:in
`block in autorun'
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
long
trailing echo) "any_instance is terrible practice.. never use it!"
So I am curious if anyone has suggestions on how this might be improved?
Thank you.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
xcute that test a bit? Or
is that just impossible with the way headless vs browser stuff works?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
poses, but I was hoping for a better way... Any
ideas?
Thank you.
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
nk(locator) || have_button(locator)
end
But that doesn't work... Is there any way to do this?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
rolled action", proc { do_create }
end
end
but I get: "expected CanCan::AccessDenied, got #"
Just curious, how can I do this?
Patrick J. Collins
http://collinatorstudios.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
dynamically? In other words, so that instead of stubbing I could
just do something like:
I18n.t("waka")[:waka] = "hooray!"
and then in code can still access
I18n.t("waka.waka").. But that doesn't work, and I am not sure how to
pull that off... Any help would be gre
1 - 100 of 108 matches
Mail list logo