-
as seen on Super User
- Search for 'Super User'
I'm trying to set up autotest on Ubuntu, and no matter what my configuration, I get this:
loading autotest/rails_rspec2
style: RailsRspec2
/home/brian/.rvm/gems/ruby-1.9.2-rc2@rails3tutorial/gems/redgreen-1.2.2/lib/redgreen/autotest.rb:6:in `<top (required)>': uninitialized constant Object::PLATFORM…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am running Rails 3 Beta2 and attempting to get Autotest working with rspec.
When I run autospec, I receive the following message:
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:334:in `bin_path': can't find executable autospec for rspec-2.0.0.beta.5 (Gem::Exception) from /usr/local/bin/autospec:19
I…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In one of my project with some existing code, some code is covered by _test.rb file, other is by _spec.rb and we introduced .feature
It became a nice mixture of stuff to check.
I am stumped how to run .feature, _spec.rb and _test.rb for red-green cycles.
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
Today Ubuntu asked me to upgrade to 11.04. The installation went completely fine until right at the end when the following packages failed:
install-info
ubuntu-standard
The installer hung so I had to shut it down manually. Ubuntu still works fine but it says that the upgrade didn't work properly…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Autotest is supposed to map my tests to a class, I believe. When I have class Foo and class FooTest, autotest should see FooTest and say, "Hey, this test corresponds to the unit Foo, so I'll look for changes there and re-run tests when changes occur." And that works, however...
When I have Foo::Bar…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi all,
I'm trying to use url_for(:back) to create a redirect leading back to a previous page upon a user's logging in.
I've had it working successfully for when the user just goes to the login page on his or her own. However, when the user is redirected to the login page due to accessing a page…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm stumped on what's causing this. I get this error and stack trace in all my functional tests where I call 'post'. Here is the full stack trace:
7) Error:
test_should_validate(UsersControllerTest):
ArgumentError: wrong number of arguments (1 for 0)
/Users/hisham/src/rails/ftuBackend/vendor/rails/actionpack/lib/action_controller/routing/route…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I recently installed a fresh development setup on my laptop and now notice that my instances of spork take several minutes to start up. This is also most likely of the RSpec and Cucumber tests start up times running super slow.
I ran in diagnostic mode with the -d flag and received the output below…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a simple rails 2.3.4 application I am trying to get running with rails 3.0.0-beta2. I have the server running and all my links and navigation showing, however for some reason the content of my views is not displaying.
When I navigate to Site/index the html in my index.html.erb in my site…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
The latest version of rails installed on my mac is 3.0.0.beta
gem list returns
rails (3.0.0.beta, 2.3.5, 2.3.4, 2.3.2, 2.2.2, 1.2.6)
I want to create a new project using version 2.3.5
So I run: rails _2.3.5_ myProject
But it returns the following error
$ rails _2.3.5_ photosbackup
/Library/Ruby/Site/1…
>>> More