Displaying 20 results from an estimated 5000 matches similar to: "TextMate bundle in MacroMates repo"
2007 Oct 24
1
Alternate File "require" line in TextMate bundle
Ok, this is INCREDIBLY finicky of me, and I''m a really finicky person  
at the best of times, but I noticed that when you use the TM  
Alternate File command to create specs, it does it with a header line  
like this:
   File.dirname(__FILE__) + ''/../../../spec_helper''
I use a header line like this
   require File.expand_path(File.join(File.dirname(__FILE__), *%w 
[..
2007 Jun 14
4
Can''t run RSpec files in TextMate
Hi
Not sure if this is the place to ask this or not.  I''ve upgraded to  
RSpec 1.0.5, installed the latest TextMate bundle, but whenever I do  
"Run Behaviour Descriptions in selected files/directories" I get this:
/Users/ashleymoran/Library/Application Support/TextMate/Pristine Copy/ 
Bundles/RSpec.tmbundle/Support/lib/spec_mate.rb:18:in `run_files'':  
private method
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 Jun 27
2
Controller specs not shareable?
Hi
I just wondered if there was a reason why Rails controller specs are  
not shareable?  eg
   describe "All XHR POSTs to /gap/calculate_quote", :shared => true do
     controller_name :gap
     # ...
end
describe "XHR POST /gap/calculate_quote with valid details" do
   it_should_behave_like "All XHR POSTs to /gap/calculate_quote"
   # ...
end
blows up with
2007 Oct 31
5
Rspec Release Plan (was Am I missing something with Heckle?)
On Oct 31, 2007 11:36 AM, Scott Taylor <mailing_lists at railsnewbie.com> wrote:
> When can we expect the next release of rspec?
Definitely by the end of November.
Likely by mid-November.
Hopefully in a matter of days.
The next release will be 1.1.0.
We''re going to a release model in which 1.odd.x will be considered
experimental. This means that while we will document
2007 Oct 28
4
A better way to stub out constants
Hi
Something that''s gnawing at me... to avoid using the SQLite3 gem I''m  
stubbing it out like this:
     before(:each) do
       @database = mock("SQLite3 database")
       SQLite3 = Module.new
       SQLite3::Database = Class.new
       SQLite3::Database.stub!(:new).and_return(@database)
     end
But then it keeps nagging me:
  
2007 Oct 21
10
Preferred mock framework
Hi
In light of the fact that RSpec mocks are going into maintenance mode  
in the near future, I was wondering what everyone was switching to.
I liked the look of FlexMock most, so gave that a shot.  However,  
there''s a few things that don''t work well with RSpec due to the  
traditional differences in the way Test::Unit cases are written vs  
RSpec specs.  (One spec per
2007 Oct 24
3
How do you specify a rubygem is being required?
Hi
I''m loading a gem on demand but can''t find a way to spec it.
Assuming rubygems is already loaded, I assumed the following would work:
   describe SqliteConnection, " class" do
     it "should require ''sqlite3''" do
       Kernel.should_receive(:require).with("sqlite3")
       SqliteConnection.new
     end
   end
Unfortunately
2007 Oct 31
16
Am I missing something with Heckle?
Hi
I can''t get heckle working.  In fact, I''ve built an example so simple  
that it either shows a bug, or I am being really, REALLY stupid.
Heckle does not appear to support RSpec directly, so I''m trying to use  
spec --heckle (RSpec trunk as of 10 mins ago, Heckle 1.4.1).  I''ve  
constructed this pair of sample files:
   18> ~/Desktop/heckle_test % cat
2007 Oct 17
15
Any tips on teaching BDD with RSpec?
Hi
I hope this is not OT.  I''m training my replacement at work to do BDD  
Rails development.  He''s done a CS/maths degree but has no  
professional programming experience, so he''s never NOT done a project  
without BDD.  In a way I am jealous of his unspoilt situation :)
I''ve gone about things this way:
   * first teach him some Ruby (he did mainly Java at
2007 Oct 21
8
Interesting shared behaviour side-effect
Given the following ApplicationController specs:
   describe ApplicationController, "one facet", :shared => true do
     it ''foo'' ...
     it ''bar'' ...
   end
   describe ApplicationController, "some other facet", :shared =>  
true do
     it ''abc'' ...
     it ''xyz'' ...
   end
   describe
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 Feb 22
9
specking, speccing, or spec''ing
I vote for spec''ing.
Anybody else?
2007 Nov 26
0
rSpec (rev 2996), Rails (rev 8214): TextMate bundle problems
Hey guys,
I''m trying to get rSpec (rev 2996) working with Rails 2 (rev 8214).
Running the tests from the command line works, no problem.
I installed the RSpec.tmbundle (also rev 2996), and would like to see
the HTML test results in TextMate.  When I run the "Run examples in
selected files/directories" command in TextMate, I get the following
dump:
2007 Oct 30
7
RSpec Texmate Bundle errors
I''ve the same problem as Alastair when running rspec command :
	http://lists.macromates.com/pipermail/textmate/2007-October/022585.html
../spec/mate/runner.rb:34:in `run'':   undefined method `parse'' for  
Spec::Runner::OptionParser:Class
I fixed this for me by changing the offending line to :
	::Spec::Runner::CommandLine.run(argv, STDERR, stdout)
(see
2007 Oct 15
1
TextMate File Type Detection for RSpec & Rails
For those of you struggling with TextMate not properly detecting  
rspec files, Allan Odgaard (the author of TextMate) has kindly  
provided a tutorial on how to set up TextMate to associate all .rb  
files with rails and all _spec.rb files with rspec.
http://macromates.com/blog/2007/file-type-detection-rspec-rails
His instructions work great and switching between rspec and rails  
files has
2007 Feb 23
2
Deferred success for specs?
I''ve started using specs as a to-do list.  I write explicitly  
violated specs so I know what to come back to.  But a lot of the  
time, that means if I start to work on another piece of functionality  
covered by the same spec, it''s hard to tell what I''m working on now  
from the explicit failues.
I run all my specs through TextMate to use the HTML output, so I go  
by
2007 Nov 11
8
Autotest with rspec HTML output
Hey all,
I was just wondering if any one has played around with getting 
autotest''s rspec integration working with rspec''s HTML output.  I really 
like how in the  rspec textmate bundle the context of the failing code 
is inlined with the failing spec along with the exact line highlighted 
and a link to the exact spot in reference.  However, I rarely use this 
nice output since
2005 Oct 06
3
Ruby/Rails TextMate macros
Could someone kindly send me a copy of the TextMate macros that pertain 
to Ruby and Rails? I am assuming they are stored in or can be exported 
to some kind of plain text file...
Sadly I am not yet able to make the leap from Linux (and Windows) to a 
Mac and I am using Slickedit, which has *zero* built in support for 
Ruby/Rails. I can add macros and code templates so I thought it might be 
2007 Oct 24
3
changes to Story Runner steps
Hi all,
The following only affects people who have bravely begun to experiment
with the 2 day-old plain text story runner and definable groups of
steps.
For those who fit that bill, I just committed a few changes that will
require you to make changes to your code.
The StepMatchers class is now the StepGroup class.
The step_matchers methods on PlainTextStoryRunner and StepGroup is now
just