Displaying 20 results from an estimated 10000 matches similar to: "changes to TextMate bundle"
2007 Dec 03
18
Need help mocking this out
Let''s say you''re using the restful_authentication plugin.
You have a model called articles. On the index action of the
articlescontroller you simply want to spec out that it''ll scope the results
to the ownership of the current_user.
It should NOT include any articles other than the articles that user owns.
How would you properly spec this out?
Thanks for the help!
2007 Sep 03
20
Reason for _spec.rb convention
Hi
Easy one - I just wondered why all spec files for rspec_on_rails end
"_spec.rb" instead of just ".rb"? They are all inside the spec
folder so surely the fact they are specs is implicit?
Ashley
2007 May 31
16
Could anyone please help with rspec/nested resource behavior checking?
My problem has been listed here:
http://railsforum.com/viewtopic.php?pid=25439#p25439
Don''t think it would be required to completely re-type it here :)
Thanks!
--
-Daniel Fischer
http://danielfischer.com - Geek Blog
http://abigfisch.com - Portfolio
http://writersbeat.com - Writing Community
2007 Oct 11
4
[RSpec] Question about using TextMate Bundle...
Hey Everyone,
First time poster! woot!
Can someone please point me to a Wiki, FAQ, web page, that I can reference
to help me debug why my installation of the TextMate Bundle doesn''t work?
Am I supposed to install the gem, then install the plugins into a project,
then install the bundle before the bundle can work?
I can run ''rake spec'' at the command line just fine;
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
2007 Mar 19
24
alias method spec?
I am completely baffled by this one - My guess is that there is no
pure ruby way to do this - but how could I set up a spec to test that
one method is an alias of another?
Thanks for any help,
Scott
2008 Mar 04
2
textmate bundle
Hi,
I''m just getting e set up on my machine, and I was wondering if someone
could point me to the current rspec bundle for textmate? I googled and found
a million of them, I think.
Thanks.
-Corey
--
http://www.coreyhaines.com
The Internet''s Premiere source of information about Corey Haines
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Jan 13
4
TextMate bundle not compatible with nested specs for running focused tests?
Seems like the recently updated (and wonderful) textmate bundle does not
take into account running individual tests that are in nested specs.
Anybody else notice this? Any ideas?
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080113/15d5cc2f/attachment.html
2007 Sep 08
1
why no newlines in failure messages?
Instead of :
expected "<ul>\n <li>red</li>\n <li>blue</li>\n</ul>", got "<ul>\n
<li>red</li>\n <li>blue</li>\n </ul>" (using ==)
could we make rspec exceptions look more like :
expected "<ul>\n <li>red</li>\n <li>blue</li>\n</ul>",
got
2007 Aug 08
5
Can''t seem to spec a ActiveRecord::RecordInvalid exception properly...
1 def create
2 @user = User.new(params[:user])
3 @user.save!
4 self.current_user = @user
5 redirect_to user_path(@user)
6 flash[:notice] = "Thanks for signing up!"
7 rescue ActiveRecord::RecordInvalid
8 render :action => ''new''
9 end
I can''t seem to properly spec this out. I am trying numerous things, the
latest one is
2007 Dec 11
5
RSpec TMbundle
I tried checking it out today using instructions here:
http://rspec.rubyforge.org/tools/extensions/editors/textmate.html
I get a ''svn: Connection closed unexpectedly''. Did it move or is it
down?
Nathan Sutton
fowlduck at gmail.com
rspec edge revision 3052
rspec_on_rails edge revision 3049
rails edge revision 8269
2007 Sep 17
3
how do I get the beautiful html rspec results in textmate?
I''m going through PeepCode RSpec Basics and he gets a beautiful rspec
results page in html when he presses a hotkey in TextMate.
I would guess it''s along the lines of Apple + R but I don''t get the same
results and I''m using the same bundle.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Jan 09
6
spec not running in TextMate
I tried running a spec with command-r in TextMate and got:
/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/
lib/spec_mate.rb:1:in `require'': No such file to load -- rubygems
(LoadError) from /Library/Application Support/TextMate/Bundles/
RSpec.tmbundle/Support/lib/spec_mate.rb:1 from /tmp/
temp_textmate.GplhPr:3:in `require'' from
2007 Jul 29
24
View-Driven-Development by Behavior-Driven-Development and RSpec
One of the things that turned me on to BDD and RSpec was speccing
views first, that the desired end would drive the development. In
previous projects while using Test::Unit I would try to make educated
guesses as to what would be needed in the model and controllers to
derive the view without actually writing the view until afterwards.
This is all because testing relied on each previous
2007 Feb 22
9
specking, speccing, or spec''ing
I vote for spec''ing.
Anybody else?
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 Jul 18
10
Rails - Mock going out of scope?
Hello list,
I think I have a rails related RSpec problem with a mock going out of
scope on a recursive call to a model.
The code is at: http://pastie.textmate.org/79821 if you want to see it
highlighted. I have pasted it below as well.
Basically, I have an acts_as_nested_set model called "Node", which
works fine. I have a function which finds the language name of the
node instance.
2008 Mar 05
14
ActiveRecord, spec''ing find has right :order parameter
I''m wanting to write a spec that a model is applying an :order option
to a find call, but I don''t want to completely specify all of the find
parameters.
So I want to write something like this, say in a controller spec
User.should_receive(:find).with(:all, hash_with_at_least(:order =>
''user.name ASC''))
get ''index'', :sort =>
2007 Oct 23
9
Running rails specs outside of the normal project tree
I want to create a spec/regressions directory with various
regressions (for my rails project). I tried the following:
describe LoginController, "regression for user creation when
steves_sister does not exist", :behavior_type => :controller do
controller_name :login
before :each do
@params = {
"commit"=>"Create Account",
2008 Jan 18
2
CC.rb and RSpec
When trying to configure a rspec 1.1.2 based app in CC.rb, I came
across the following:
/home/bryan/cruisecontrolrb-1.2.1/projects/support-engines/work/vendor/
plugins/rspec_on_rails/lib/spec/rails/../../../../rspec/lib/spec/
runner/options.rb:218:in `files_to_load'': File or directory not found:
cc:build (RuntimeError)
from