Displaying 7 results from an estimated 7 matches for "yenni".
Did you mean:
kenni
2011 Jul 05
7
error of "rake test" command
...ilties-3.0.7/lib/rails/application.rb:
215:in `initialize_tasks''
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.7/lib/
active_support/whiny_nil.rb:48:in `method_missing'': undefined method
`should_not_be_valid'' for nil:NilClass (NoMethodError)
Thank you very much
Yennie
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/...
2011 Jul 05
4
Problem of "rake spec"
Hi all,
I am a bit confused when i type rake spec and it gives me this
message,
No examples matching ./spec/**/*_spec.rb could be found
what is that mean that something is not found.
and where i can input my the test code because i did have a tiny
sample code in user_controller_test.rb.
is that the right place to test functional..
plz give me a help
thanks
--
You received this message
2011 Jun 30
8
Error of DEPRECATION WARNING
Hi,
I Have a strange error when i type the command "rake db:migrate "
Can you help to solve this error or give me some advices
the error is:
DEPRECATION WARNING: Rake tasks in /home/joanne/Desktop/picto/vendor/
plugins/prawnto/tasks/prawnto_tasks.rake are deprecated. Use lib/tasks
instead. (called from <top (required)> at /home/joanne/Desktop/picto/
Rakefile:7)
thanks for help
2011 Jul 11
36
has_many and belongs_to association
...st) [/usr/local/lib/ruby/gems/1.9.1/gems/
shoulda-2.11.3/lib/shoulda/context.rb:324]:
Expected Phrase to have a has_many association called languages
(Language does not have a phrase_id foreign key.).
Expected block to return true value.
I dont really understand what it''s warning now..
Yennie
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/...
2011 Jun 28
1
error from command rake test:units
I got some error when i run the command line rake test:units
14) Error:
test_the_truth(UserTest):
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table:
cultures: DELETE FROM "cultures" WHERE 1=1
I did delete the model culture from my project.. and i change it it as
other name.
could anyone help to to solve this problem.
thanks
--
You received this message because
2011 Jul 06
0
undefined method `assigns' and undefined method `post'
...`assigns'' for
#<Spec::Example::ExampleGroup::Subclass_1:0xb785d1b4>
Test file
describe "GET Index" do
def mock_product(stubs={})
@mock_user ||= mock_model(User, stubs).as_null_object
end
def setup
@user = User.new
end
please give me some help ..
thanks
Yennie
it "assigns all users as @users" do
@user.stub(:all){[mock_user]}
assigns(:users).should eq([mock_user])
end
end
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rub...
2011 Jun 30
2
How to play with shoulda with functional testing
Hi,
I am new in rails testing, and now i try to use shoulda to test the
functional section.
can anyone give me some advice, example or recommend tutorial site to
me..
thanks
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To