Displaying 20 results from an estimated 1000 matches similar to: "Rails 3, Rspec 2, Autotest"
2011 Jan 14
2
Rspec autotest error
Hi all,
I tried testing with Rspec for first time, following a tutorial.
"rspec spec/" works fine but when I try ''autotest'' it gives me the
error message below. I also made a gist about it: https://gist.github.com/779265
It seems like a redgreen or ZenTest error. I''m using Ubuntu10, Rails3,
Ruby 1.9 and RVM. Any help is appriciated, thanks in advance,
gezope
2008 Jun 04
8
Why has the --color gone from my life?
Hi all,
Running on OSX 10.5.3, Latest Rspec trunk, Rspec rails trunk, latest
autotest gem and rails 2.1
I''ve lost my colour output in autotest.
rake spec gives colour output, but autotest gives me black and white.
It was working a little bit before, I think I upgraded to the latest
versions of everything to get all the textmate snippets talking and being
friendly to one another again
2008 Jan 11
5
changes in rspec''s trunk and autotest
This applies to anyone using rspec''s trunk from >= 3220 with ZenTest <= 3.7.2.
Anyone else, feel free to move on....
The next release of ZenTest, coming soon, includes some changes that
improve the relationship between Autotest, it''s subclasses (like those
in rspec) and .autotest, the file that you can use to plug into
autotest''s hooks to extend/modify
2008 Jan 13
10
.html.erb files and autotest
When I work with a .html.erb file, the autotest rspec on rails stuff doesn''t
understand the file to map it to the right test. I wanted to submit a patch
for this, but I''m unsure where the specs would be to update. I found the
necessary mapping in rspec_autotest.rb, but I can''t find any specs anywhere.
Help?
I just need to have
/app/views/coupon/index.html.erb to map to
2011 Feb 21
4
autotest with Growl not working
Hi I''m new and using Ruby on Rails 3 but when I run $ autotest nothing
happens (I have growl installed). If I run $ rspec spec then I get the
''Finished in 0.07253 seconds seconds 2 example, 0 failures'' message
I have the following gems installed for autotest (checked via $ gem
list):
autotest (4.3.2)
autotest-fsevent (0.2.4, 0.2.2)
autotest-growl (0.2.9, 0.2.4)
2007 Oct 23
10
How is everyone structuring stories?
Bleeding-edge story-writers,
How are you structuring your specs?
I am working on a new project and tried this:
./lib
./blah
./spec
./blah
./stories
But it breaks autotest, so I moved stories parallel to lib and spec.
Also what about suffixes?
I have adopted "xyz_story_spec.rb", and "xyz.story" for the time
being, with the line
runner =
2007 Nov 20
5
Autotest rspec issues
I''m having trouble getting autotest to run "out of the box" with rspec.
I''ve got a Leopard setup with Zentest 3.5.0, rspec on trunk, and rails
2.0PR. No ".autotest" file.
There are a couple of issues:
1. Running ''autotest'' inititally yields a command not found for "spec
--diff unified etc etc". This seems to be an old issue but
2010 Sep 22
1
Bundler picking up wrong version of Ruby with Rails 3 ( possible bundler bug )
Hello All,
I am developing a JRuby on Rails 3 application. Standard stuff.
I am facing problems getting autotest to run.
Here''s the trace:
% autotest
loading autotest/rails_rspec2
bundle exec
/Users/manish/Foo/Foo-Server/jruby-1.5.2/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.22/bin/rspec
2011 Jan 14
4
Rails 3 / RSpec 2 use_transactional_fixtures and after_commit
We''re migrating a Rails 2.3.x application to Rails 3 and RSpec 2.x.
In Rails 2.3.x we were using
https://github.com/freelancing-god/after_commit to provide
after_commit functionality (now provided by Rails 3).
The plugin version of after_commit came with some helpers to make
testing with `use_transactional_fixtures = true` work.
From: https://github.com/freelancing-god/after_commit
2007 Oct 15
4
Stories location
Should the stories dir be located on the project root? I was expecting to
find it located under spec/ but there isn''t anything there, just the
stories dir off of /. Also there don''t appear to be any rake tasks for
stories, nor generators. Should there be any?
Thanks,
Steve
2007 Jun 08
5
autotest bug?
Autotest is running continuously - even when the files mtimes aren''t
changing. I believe this only happens if using a failures file.
autotest -v gives me:
euclid% autotest -v
loading autotest/rails_rspec
/opt/local/bin/ruby -S script/spec -O spec/spec.opts spec/
controllers/log_entries_controller_spec.rb spec/views/login/
new_spec.rb spec/controllers/login_controller_spec.rb
2010 Sep 30
5
response.should have_text leads to undefined method `has_text?'
One of my controllers directly renders some JSON output that I would
like to test with RSpec. For that I use ''response.should
have_text("foobar")'' in my spec file, but that leads to a
Failure/Error: response.should have_text("enim")
undefined method `has_text?'' for #<ActionController::TestResponse:
0xb6736944>
I read here somewhere that webrat
2007 Jul 14
8
Specing Layouts
Hi,
I''ve just started to try and spec my application.html.erb layout as one of
the view specs but it totally barfs.
I''m guessing that it''s due to the yield statements in the layout.
Any clues as to how to proceed?
Cheers
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2009 Jul 31
6
Background daemon
It''s sending e-mail every hour, but I changed to sleep for a day, but
keep send the e-mail by hour. I don''t know what to do to send daily.
Could somebody help me?
thanks
############
# mailer.rb
###############
#!/usr/bin/env ruby
# You might want to change this
ENV["RAILS_ENV"] ||= "production"
require File.dirname(__FILE__) +
2009 Jun 22
1
Action caching with multiple domains
I have recently setup some action caching in my Rails app and everything
seems to be working fine. I am using file store pointing at /tmp/cache. The
problem I am running into is that separate cache directories are being
created for different domain names that point at the same server. For
example mysite.com and www.mysite.com will have different cache directories.
It seems like it should be easy
2009 Nov 19
3
Log File Location
This may be a dumb question, but where can I see the error logs that
are usually displayed when unicorn is not daemonized? The
production.log file is empty in my app. Everything is currently
running as root.
2008 Sep 14
2
rake spec:rcov => [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i386-mswin32]
i have a rails app that tests fine with "rake spec" but gets a
segmentation fault when "rake spec:rcov" is run.
i am on windows xp, ruby 1.8.6, rails 2.1.1, mysql 5
my app is at
http://github.com/scottnj/test_blog/tree/master
so maybe someone can try to replicate my error so i know if the
problem is with my code or something installed on my pc.
here is a copy of my shell
2010 Nov 20
6
unicorn 3.0.0 - disable rewindable input!
Changes:
Rewindable "rack.input" may be disabled via the
"rewindable_input false" directive in the configuration file.
This will violate Rack::Lint for Rack 1.x applications, but can
reduce I/O for applications that do not need a rewindable
input.
This release updates us to the Kgio 2.x series which should play
more nicely with other libraries and applications. There are
2007 May 23
4
Error when posting form
Trying to submit a form is resulting in the following error:
>> page = agent.submit(f, f.buttons.first)
query: "action=start&quick=Y&clientApp=0&clientID=MCO"
Net::HTTP::Post: /dealerApply/controller.jsp
using cookie:
JSESSIONID=GJ4NCvGJDTlrvrKsLw17hZ3FnlXFdVkvB5hh1jLkHKcH4Tn27371!-538794652
request-header: accept-language => en-us,en;q0.5
request-header: connection
2010 Jan 18
5
Re: puts & logger ... flush immediately
Marnen Laibow-Koser wrote:
> Ralph Shnelvar wrote:
>> newbie here ...
>>
>> I am tracing logic putting puts and logger.info calls in my code.
>>
>> I _think_ Rails is buffering output so that I can''t see what happens
>> until I close out webrick.
>
> But you are probably wrong. If you watch the log scroll by, you will
> generally see