public
Description: response for lets you decorate your actions respond_to blocks
Homepage: http://blog.ardes.com/response_for
Clone URL: git://github.com/ianwhite/response_for.git
Click here to lend your support to: response_for and make a donation at www.pledgie.com !
ianwhite (author)
Thu Feb 19 13:26:38 -0800 2009
commit  d7ce156cc451e0f5f7ae59fd9e38474ce479dfae
tree    1e8a42e55600b942a81f1ca9cdd0c71b18d8010d
parent  ce9705f6aff79ae9b1af8cfba0a548f1ff6c1f7d
response_for / garlic.rb
100644 33 lines (27 sloc) 0.848 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# typical rspec garlic configuration
 
garlic do
  # this plugin
  repo "response_for", :path => '.'
  
  # other repos
  repo "rails", :url => "git://github.com/rails/rails"
  repo "rspec", :url => "git://github.com/dchelimsky/rspec"
  repo "rspec-rails", :url => "git://github.com/dchelimsky/rspec-rails"
  
  # target railses
  ['origin/master', 'origin/2-2-stable', 'origin/2-1-stable'].each do |rails|
    
    # declare how to prepare, and run each CI target
    target "Rails: #{rails}", :tree_ish => rails do
      prepare do
        plugin "response_for", :clone => true # so we can work in targets
        plugin "rspec"
        plugin "rspec-rails" do
          `script/generate rspec -f`
        end
      end
    
      run do
        cd "vendor/plugins/response_for" do
          sh "rake spec"
        end
      end
    end
  end
end