Displaying 20 results from an estimated 40000 matches similar to: "why remove "Rails.root/test/mocks/test""
2007 Aug 23
3
test/mocks/ in rails directory structure
Anyone ever uses test/mocks/development && test/mocks/test directories ?
If someone does, test/mocks/development doesn''t really seem like a
nice place for putting development environment mocked classes. May be
mocks/ should be moved to RAILS_ROOT ? Or may be it should be removed.
Views ?
--
Cheers!
- Pratik
http://m.onkey.org
2012 Dec 04
0
Empty test suite is run after every rake task
When I run rake db:migrate or rake -T I get these lines at the end:
Finished in 0.000276 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
My Gemfile is:
source ''http://rubygems.org''
gem ''rack''
gem ''rails'', ''3.0.9''
gem "acl9", ''0.12.0''
gem "fastercsv"#, :version =>
2012 Jun 14
1
Cucumber/RSpec ::: Capybara? Webrat What am I using??
Hey everybody
I''m currently reading through the Pragmatic Programmers RSpec book, and
I really enjoy it.
But I’m facing some problems because of the fact that the book is
already some years old, I guess. I have installed rvm and use Ruby
1.9.3, and I didn’t really get some Rails code examples to work
properly, so I tried it with a 1.8.7 installation, but there I had some
other problems
2006 Dec 18
4
How to keep mocks consistent?
Hey all,
Here''s a question for everyone: how do you keep your mocks and stubs
consistent with your real objects?
I''m dipping my toes into the RSpec world, and it''s absolutely
delightful (running dozens of tests in less than a second is nice as
well), but I''m concerned about my ability to keep the mocks in my
specs consistent with the behavior of their
2012 May 05
1
rspec-mocks and rspec-rails-2.10.1 are released!
These are patch releases recommended for anybody who has already
upgraded to 2.10.
### rspec-mocks-2.10.1
full changelog: http://github.com/rspec/rspec-mocks/compare/v2.10.0...v2.10.1
Bug fixes
* fix [regression of edge case
behavior](https://github.com/rspec/rspec-mocks/issues/132)
* fixed failure of
`object.should_receive(:message).at_least(0).times.and_return value`
* fixed failure
2011 Mar 31
3
can i switch to rails 2.3.5 and run a rails 2.3.5 code??
Hi all,
i have installed rails 3 using RVM . the prob is now i have two parallel
projects where one is in 2.3.5 and another is in rails3.
i use Mac o x 10.6.3
mysql :Server version: 5.1.56 MySQL
so can i switch in between rails3 and rails 2.3.8??
this is my gem list...
actionmailer (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5)
actionpack (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5)
2012 Jan 15
2
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. (rspec + haml)
I upgraded a small project that I had created on 3.1.3 to 3.2.0.rc2.
Running rspec on it brings about a large amount of these messages:
DEPRECATION WARNING: Passing a template handler in the template name is
deprecated. You can simply remove the handler name or pass render :handlers
=> [:haml] instead. (called from block (2 levels) in <top (required)> at
2006 Sep 15
0
Using Selenium with a mock-method on associated Model ???
Hello all,
I have a Selenium test calling |open|/sales/approve_activity|
The data list gathered for this page requires an external database call
to a stored procedure to fill a "work table" that is read for the data
on the page (SQL 2000).
I have the call wrapped in a single-line method.
During my functional test, I mock-disable the stored procedure call, as
the "work table"
2010 Aug 29
0
Troll - A Rails plugin for making webservice mocking easier
Hi Folks,
Troll trumps your existing ActiveResource mocking libraries like
inbuilt HttpMock,Fakeweb or Webmock out of water. With Troll,
ActiveResource mocking just works, some of its features:
1. Don''t need to mock calls at Net::HTTP level (which webmock,fakeweb
do). Really, we don''t care what HTTP library ActiveResource uses,
fakeweb and webmock bring additional complexity
2007 Jul 26
5
Coding standards and whitespace
Recently as a result of using Git I''ve noticed a number of
inconsistencies in the RSpec codebase with respect to whitespace
(mixed line endings, mixed use of spaces and tabs for indentation,
and trailing whitespace at the end of lines). I never would have
noticed, but Git produces nice colorized diff output which highlights
these kinds of inconsistencies.
I wanted to ask if the
2010 Aug 08
1
Why Rails 3 installation is so pane full
Hi all
Why Rails 3 installation is so pane full...?
I am using fedora 10,
ruby 1.8.6
rails 2.3.5/2.3.8
Now want to upgrade to rails3
i tried so many links...
but nothing find essay.. for Rails 3
problem in ruby installation
please suggest good links ...
Thanks....
Regards
Shyam
971-618-9650
shyam.heroku.com
--
You received this message because you are subscribed to the Google Groups
2010 Sep 20
2
For Your Own Info: Rails 2.3.2 is incompatible with Cucumber (0.8.5), Capybara (0.3.9) and Selenium-webdriver (0.0.17)
Railers,
I am running an application on Rails 2.3.2. For some reason within our
organization, we wish to remain on this version of Rails. For BDD/Testing,
we use Cucumber. So I installed Cucumber (0.8.5), Capybara (0.3.9) and
Selenium-webdriver (0.0.17). But when I run Cucumber on any feature, I get
an error saying *" wrong number of arguments (2 for 1) (ArgumentError)"*,
(Check here
2010 Oct 25
2
Fail to load spec/rake/spectask
Hi!
I''m a newbie at Ruby. I''m trying to run rspec tests using rake. In my
rake file I include spec/rake/spectask.
It fails to load giving me the following message:
rake aborted!
no such file to load -- spec/rake/spectask
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in
`raw_load_rakefile''
I''m using version 1.8.7 of Ruby.
I have installed rake
2006 Feb 13
9
Selenium. Replacement for traditional rails functional test?
Hi list
I''ve got a bit of a philosophical question. After just having discovered
Selenium /Selenium IDE and the rails selenium plugin I''ve realized that
it''s a whole lot easier to do functinoal testing than writing the
traditional rails functional tests.
However it implies that the development database consists of
standardized test data (e.g the test & dev
2007 Feb 17
1
"warning: object#id will be deprecated" with mocks
hi all
I have the following code in a spec:
@user = mock("user")
User.stub!(:authenticate).and_return(@user)
@user.should_receive(:id).once.and_return(99)
post :login, {:username => ''username'', :password => ''password''}
session[:user_id].should == 99
it works as expected but I get the following warning when I run the spec:
warning:
2008 Sep 30
0
Help me with this test/mocks issue please!
I have a class called X that writes to disk. For this reason, the
class is hard to test. If it wrote to a hash instead, I could test
it.
So I made a new class called X in test/mocks. In that class, I
overrode the methods that wrote to disk.
But I didn''t want to copy ALL the methods from the real X into the
mock X - only the ones that were being over-ridden.
My idea was to subclass
2012 Oct 21
0
rails g problem
When I enter rails g, I get the bunch of logs behind.
Any idea what I''m missing?
I though it''s trying to install minitest, so I manually installed it.
Still this error persists.
$ rails g
gem install minitest
/Library/Ruby/Gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'': no such file to load -- minitest/unit
2011 Jul 18
1
rails server being aborted due to mysql lib file not available
Hi,
My system has the following :
MacOs Leopard
Rails 3
Ruby 1.9
Mysql 5.1.58
mysql2 ruby gems
My problem is that when i give "rails server", the task aborts with
the foll error
rails server/Users/nisha/.rvm/gems/ruby-1.9.2-p180@rails3/gems/
railties-3.0.5/lib/rails/script_rails_loader.rb:11: warning: Insecure
world writable dir /usr/local/bin in PATH, mode 040777
2009 Apr 29
1
Cucumber/Webrat/Selenium + SSL?
Has anybody had any luck getting Cucumber, Webrat and Selenium to play
nicely together for SSL sites?
My test environment:
- nginx front-end accepting SSL requests, proxying them to mongrel
back-end
- mongrel back-end accepting normal HTTP requests
- application routes configured with ":protocol => ''https''" so that
URLs generated with "_url"
2010 Mar 24
1
How to stub a has_many relationship in Rails 2.3.5
We have a test that has been working find until we upgraded to rails 2.3.5.
I''m not too familiar with mocks/stubs so maybe there is an easy solution.
Here is a simple example of our scenario.
Class Person < ActiveRecord::Base
has_many :aliases, :dependent => :nullify
before_destroy :mark_aliases_as_deleted
def mark_aliases_as_deleted
self.aliases.each do