Displaying 20 results from an estimated 10000 matches similar to: ""Plugin not found" after RSpec install"
2007 Oct 13
3
[RSpec] Unexpected behavior using TextMate Bundle...
Howdy,
Why does the bundle NOT work when I do the following:
- Start TextMate
- Open my project
- Open my spec
- Try to run spec and get an error
While the following DOES work:
- Open Terminal
- Locate my project
- Start TextMate via command line (mate .)
- Open my spec
- Try to run spec and it works
Cheers,
Mel
-------------- next part --------------
An HTML attachment was
2007 Oct 11
2
Incompatibility Issues after updating CURRENT
Hi,
I''m using piston to manage rspec and rspec_on_rails in vendor/plugins.
----
~/work/simplify_md $ piston st vendor/plugins/
vendor/plugins/rspec
(svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec)
vendor/plugins/rspec_on_rails
(svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails)
----
After I ''piston update''d rspec and
2008 Mar 04
10
Pretty story output for non-Rails project
I''m taking my first fledgling steps driving a new ruby (non-rails)
project with BDD. I''ve got a (test) story working. However, when I
run the story in TextMate (via command-r), the output is plain text.
See: http://skitch.com/georgeanderson/8grg/run-examples
How do I get the output to look pretty (formatted)?
rspec-1.1.3
OS X 10.5.2
TextMate v1.5.7 (1455)
Thanks,
/g
--
2007 Oct 24
1
Stubbing Kernel.` (backquote)
I''m trying to stub(!) the Kernel.` (backquote) method and I''m having
confusing (to me) results. Here''s the method I''m spec''ing:
class Barcode
...
def raw_barcodes
self.make_temporary_copy
`OcrBarcode #{self.temp_file_path}`
end
...
end
And this is my (newbish) attempt at the spec:
describe "Calling @barcode.raw_barcodes" do
2008 Jan 18
9
new in ruby and rspec testing
Hi to all
I''m a new in ruby and RoR programming.
And my problem is Rspec.
I don''t understand how to write test files in rspec.
Maybe it''s because I don''t know ruby good.
Can you send me links to fine examples/screencasts/e-books and other
stuff.
I found some on google but it not enough :(
Thanks for replie''s
--
Posted via http://www.ruby-forum.com/.
2007 Oct 26
3
Textmate Formatting has gone away
Hi,
I just updated my Textmate bundle to the latest in the svn because It wasn''t
working with the latest version of rspec. It''s been a while since I updated
the bundle ;)
I like the format that I used to have of a progress bar across the top and
html formatted results for each example, however now all I''m getting is
...........
passed etc etc.
How do I get the old
2006 Oct 31
5
How to run edge RSpec (on Rails)?
I''m interested in tracking edge development of the RSpec on Rails
plugin and I''m a bit confused.
The installation guide
(http://rspec.rubyforge.org/documentation/rails/install.html) says,
"You''ll have to install the RSpec core gem first." It also says,
"Take note of what rspec version you''re installing ? it''s very
important that you
2007 Oct 23
6
Problem Upgrading from 1.0.5 to 1.0.8
Hey Guys,
I''m getting the following error:
1)
NameError in ''ProductsController with a GET to /products NO NAME
(Because of Error raised in matcher)''
uninitialized constant Spec::Mocks::BaseExpectation::AnyArgsConstraint
/Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:86:in
2007 Oct 31
6
Autotest busted with Rspec/Rails trunk
Just upgraded to latest rails and rspec builds and my autotest doesnt
work
undefined method `before'' for Spec::Rails::DSL::RailsExample:Class
(NoMethodError)
Here''s the full trace:
http://pastie.caboo.se/112754
Any ideas?
--
Posted via http://www.ruby-forum.com/.
2008 Jan 04
7
best way to modify spec (the command-line tool)?
Hi all, where I work we''ve cooked up a kind of ghetto profiler for our
specs. It basically just does this:
time = Time.now
# run the spec
puts "woah! dude. long spec." if time > 1.second
I''m simplifying here. I think the threshold is actually 0.1 seconds,
and we use more precise language, and highlight the spec in red via
terminal colors, etc.
But the way it works
2008 May 03
6
Everyone Using Rspec Autotest?
I haven''t been spec''ing lately, but been hopping back on and adding
autotest.
However I get an error:
http://pastie.caboo.se/177538/wrap
I also noticed a post by Scott and there was mention of rspec_autotest.
Is this is what everyone is using?
http://svn.caldersphere.net/svn/main/plugins/rspec_autotest/
2007 Oct 05
2
Rails, rSpec edge problems
Hi,
Does the Story Runner work on edge rails? I thought that is what the
example app was using but I am on the latest Rails and latest rSpec
revisions and I am having problems. When I call ''render_template'' in a
story I get the following:
NoMethodError: undefined method `render_template'' for
#<ActionController::Integration::Session:0x327d974>
Do I need to
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
2010 Jul 13
2
[Rspec] Difference between stub and message expectation with any_number_of_times
I''m wondering what''s the difference between stub and message expectation
with any_number_of_times, for example:
myMock = mock("mymock")
myMock.stub!(:is_a?).with(MyClass).and_return(false)
and
myMock = mock("mymock")
myMock.should_receive(:is_a?).with(MyClass).any_number_of_times.and_return(false)
because is_a? may not be called at all, it just like a
2007 Oct 05
9
I can''t make RSpec 1.0.8 run in Rails 1.2.3
I followed the directions on the site:
ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec
ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/REL_1_0_8/rspec_on_rails
ruby script/generate rspec
And apparently everything was ok. But when I do a "rake spec" on the app folder none of the Rails models are visible. Here is the error:
(in
2007 Oct 04
1
Cookies in RSpec
So how do you work with cookies properly in rspec now? I noticed in
the docs that it mentions session, assigns, and flash, but nothing of
cookie. I''m using edge rails so I''m concerned about changes to the
cookie mechanisms. I need to assign values into the cookie (a
remember token for restful authentication) so that I can have it log
in by cookie. here is my spec
2008 Mar 01
5
rspec with continuations: very strange
I appear to have written code which travels backwards through time:
http://www.vimeo.com/742590
This disturbs me immensely. If anyone can explain it, that would be cool.
I think it''s an illusion brought about by how RSpec wraps the code it
executes, and by the sheer weirdness of continuations.
--
Giles Bowkett
Blog: http://gilesbowkett.blogspot.com
Portfolio:
2008 Jan 23
18
Not seeing the failure
All,
I''m missing something simple, I think. I am writing a spec to say that my
CouponController should create a new coupon from the form parameters, then
set the current user. Here''s the spec:
describe CouponController, "When posting to save_coupon" do
before(:each) do
@expectedName = "pepper''s"
@expectedAmount = 5
coupon =
2007 Oct 17
16
rspec causing validates_presence_of to validate twice?
I had posted this on the regular Rails list, but upon trying this in
script/console, it seems like the behavior only exists when running rspec.
I''m getting some weird behavior in one of my models. I have a model
defined something like this
class User < ActiveRecord::Base
attr_accessor :password
validates_presence_of :password
end
If I validate the model without specifying a
2009 Sep 22
4
rspec-rails and rack middleware
It doesn''t seem like my controller specs are calling my middleware on
requests. Has anyone figured out a good way to test middlware with rspec?
I''m thinking something like
rails'' rails/actionpack/test/controller/session/mem_cache_store_test.rb but
with rspec... any thoughts?
Thanks!
Best,
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...