Displaying 20 results from an estimated 100 matches similar to: "RSpec seems to be having a hard time loading Helper classes"
2011 Nov 04
1
add dynamic nested attributes without nested form gem
Hello people
In my rails 3.0.9 app I''m trying to add nested attributes
dynamically, but I don''t want to use "nested form gem"
So I found this example
https://github.com/alloy/complex-form-examples/blob/a234fde4419836f277d7e340657f1d8418911d68/app/helpers/projects_helper.rb
but this code doesn''t work
module ProjectsHelper
def
2007 Aug 08
3
rspec with autotest on a windows machine
Hello all,
I''m new to rSpec but after reading a couple of tutorials I''ve become
enamored. Anyway, I am at minute 42 of the rSpec basics screencast (
peepcode.com) and I''m having the following error running autotest w/rSpec:
D:\ruby\projects\forecaster>autotest
loading autotest/rails_rspec
c:\ruby\bin\ruby -rrubygems -e "require ''redgreen''"
2006 Dec 21
1
heres how to get color output in rspec_autotest with rspec 0.7.5
In case anyone else is trying to make this work, here is what I did
(Before 0.7.4 I had patched the regex in zentest redgreen, but that
is not used any more)
To use directly, it is very simple. In rspec_autotest/lib/
rspec_autotest.rb, add a -c to the spec_command in the initializer
function:
@spec_command = "spec -c --diff unified"
This won''t help however if you want
2008 Sep 16
10
autospec is not picking latest changes
Hey Guys.
I just updated a project form 1.1.4 that was working with autotest
3.10 without issues:
1) Updated spec/model/project_spec.rb and it fired only that spec.
2) Updated app/model/project.rb and it fired only the matching spec file.
After the update of rspec and rspec-rails as plugins a few minutes
ago, it only run the controller specs and no other. Also, it doesn''t
matter which
2007 Jan 12
2
spec_ui problems
While looking into spec_ui, I decided to run the examples.
The watir example works a little, but always chokes on the ''better
than fudge'' spec (failure output below). Also, is there any command
to pause the "browser"? If my connection slows, the test gets out of
whack.
The selenium example fails right away (output below). I do have the
0.9.0 selenium-rc
2007 Mar 01
4
RC1, Rails, and problems with multiple options in spec.opts
I am having inconsistent output with multiple options in the
spec.opts file. I can, for instance, pass --color or --colour, or,
separately, use --drb. But when combining them I get:
/opt/local/lib/ruby/1.8/optparse.rb:1381:in `complete'': invalid
option: --options --color --drb (OptionParser::InvalidOption)
from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `catch''
2007 Nov 01
5
Can''t delete app/helpers
I would like to remove some unused helpers from the app/helpers dir, but
when I do so my specs fail.
Why is this? I don''t see where those helpers are referenced within the
tests. Is there a way to delete these unused files?
Thanks
--
Posted via http://www.ruby-forum.com/.
2007 Nov 13
2
new to rspec, error running "rake rspec" on debian/etch
I have the latest version of rspec and rails-rspec installed. I''m using
the debian versions of ruby and rails. On a new project after a
generate an "rspec_model" and then try to run "rake spec", I get the
following error:
dan at dan-server:~/projects/cw/registration$ rake spec
(in /home/dan/projects/cw/registration)
2009 Mar 31
7
[Cucumber] Running single feature from command line
I am using Cucumber 0.2.3 and am having problems running a single
feature. In particular, the cucumber Textmate bundle was not working
so I traced it back and discovered that I could not run single files
or features from the command line either. My setup has the following
line in cucumber.yml
default: -r features/support/env.rb -r features/support/plain.rb -r
features/steps
2007 Nov 28
6
textmate bundle
Does anyone else have issues running rspec textmate bundle? I''ve got
revision 2997, but the blasted thing just won''t run.
It is checked out to my /Users/zdennis/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle
When it runs I get the below error...
"textmate" is not a valid class name
2007 Aug 11
2
Rspec and acl_system2 plugin
Hello,
I''m trying to spec a Rails application using the couple
restful_authentication/acl_system2 plugins.
In my admin layout, I put the following code :
<% restrict_to "admin" do -%>
<ul id="admin-tabs">
<li> /users Users management </li>
</ul>
<% end -%>
Then in my spec file
2007 Mar 01
1
Problems with RC1 & Rails Controllers
I''m now using the 0.8.0 RC1 gem and have the same version of rspec
and rspec_on_rails checked out into my vendor/plugins directory.
I''m having a problems with controllers... I''ve generated a controller
using the ./script/generate rspec_controller MyController. When I
try to run the rake spec:controller task I get the following:
euclid% rake spec:controllers
(in
2007 May 24
3
Annoying problem, stack error
For some reason rake spec is totally crapping out on me.
I don''t know what I did to make it break, the only thing I tried new
was install haml, but even after removing it there is still a stack
trace.
Here is what I am getting-
sparta at phalanx ff $ rake spec
(in /Users/sparta/Projects/work/idastudios/ff)
2006 Apr 23
5
Controllers in folders and helper scope in Rails >1.0
Hi,
Here''s my problem. I tried to google it, read the release-docs and
haven''t found anything similar.
My application uses folders to store controllers, as described in the
Rails book. I need to have same-named controllers for admin and for
users, so it looks like this:
/app/controllers/admin/project_controller.rb
/app/controllers/admin/...
2008 Jan 31
1
DRb does not activate using options file
Hello List,
For a small project I''ve been using ''ruby script/spec -X spec'' to
execute my specs.
Now that I added ZenTest on it, found that the test takes longer to
run due the complete load of test environment.
Since autotest uses ''script/spec -O spec/spec.opts'' as the command, I
decided to add --drb to spec.opts
Using --drb or -X, spec_server is
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
2007 Sep 28
4
RSpec + EdgeRails on Windows
I recently post on my blog about setting up a Rails environment with RSpec
in Windows, and someone left a comment saying that it doesn''t work in
EdgeRails. I so I played around with it a bit and was able to confirm that
none RSpec appears broken on EdgeRails. I''ll post the various error messages
I received below. I''m not expecting any sort of patch or something for this
2008 May 20
4
mock_model not stubbing model attribtues in view spec
Hi -- I am just getting to grips w/ view specs, and am having an issue
with mock_model not stubbing the mocked model''s attributes.
For instance, I have the following:
<CODE>
before do
@input_timesheet = mock_model( InputTimesheet )
assigns[:input_timesheet] = @input_timesheet
end
it "should display a table element" do
render
2006 Mar 04
13
file_column
Restricting size of an uploaded file, is how is that possible? If I
do not want a user to upload a file larger than X bytes, can it
easily be done?
If I also would like restrict the types of files that can be
uploaded, how may I do so?
Thank you,
Sharkie
2007 Oct 05
13
spec''ing view render partial collection, local variable not found
I''m trying to spec out a render partial collection but I get the following
error
2)
NoMethodError in ''/games/_game.rhtml should show game name''
undefined method `body'' for #<#<Class:0x316580c>:0x2f1154c>
/Volumes/EXTERNAL/web/omenking.ca/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb:12:in
`matches?''