Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 3252 Bytes
1 | require File.dirname(__FILE__) + '/../spec_helper' |
2 | require File.join(File.dirname(__FILE__), *%w[.. .. lib autotest radiant_rails_rspec]) |
3 | require File.join(File.dirname(__FILE__), *%w[.. matchers autotest_matchers]) |
4 | |
5 | describe Autotest::RadiantRailsRspec, "file mapping" do |
6 | before(:each) do |
7 | @autotest = Autotest::RadiantRailsRspec.new |
8 | @autotest.hook :initialize |
9 | end |
10 | |
11 | it "should map model example to model" do |
12 | @autotest.should map_specs(['spec/models/thing_spec.rb']). |
13 | to('app/models/thing.rb') |
14 | end |
15 | |
16 | it "should map controller example to controller" do |
17 | @autotest.should map_specs(['spec/controllers/things_controller_spec.rb']). |
18 | to('app/controllers/things_controller.rb') |
19 | end |
20 | |
21 | it "should map view.rhtml" do |
22 | @autotest.should map_specs(['spec/views/things/index.rhtml_spec.rb']). |
23 | to('app/views/things/index.rhtml') |
24 | end |
25 | |
26 | it "should map view.rhtml with underscores in example filename" do |
27 | @autotest.should map_specs(['spec/views/things/index_rhtml_spec.rb']). |
28 | to('app/views/things/index.rhtml') |
29 | end |
30 | |
31 | it "should map view.html.erb" do |
32 | @autotest.should map_specs(['spec/views/things/index.html.erb_spec.rb']). |
33 | to('app/views/things/index.html.erb') |
34 | end |
35 | |
36 | describe "with extensions" do |
37 | it "should map model example to model" do |
38 | @autotest.should map_specs(["#{ext_path}spec/models/thing_spec.rb"]). |
39 | to("#{ext_path}app/models/thing.rb") |
40 | end |
41 | |
42 | it "should map controller example to controller" do |
43 | @autotest.should map_specs(["#{ext_path}spec/controllers/things_controller_spec.rb"]). |
44 | to("#{ext_path}app/controllers/things_controller.rb") |
45 | end |
46 | |
47 | it "should map nested controller example to nested controller" do |
48 | @autotest.should map_specs(["#{ext_path}spec/controllers/nest/things_controller_spec.rb"]). |
49 | to("#{ext_path}app/controllers/nest/things_controller.rb") |
50 | end |
51 | |
52 | it "should map view example to view" do |
53 | @autotest.should map_specs(["#{ext_path}spec/views/things/index.html.erb_spec.rb"]). |
54 | to("#{ext_path}app/views/things/index.html.erb") |
55 | end |
56 | |
57 | it "should map nested view example to nested view" do |
58 | @autotest.should map_specs(["#{ext_path}spec/views/nest/things/index.html.erb_spec.rb"]). |
59 | to("#{ext_path}app/views/nest/things/index.html.erb") |
60 | end |
61 | |
62 | it "should map helper example to helper" do |
63 | @autotest.should map_specs(["#{ext_path}spec/helpers/thing_helper_spec.rb"]). |
64 | to("#{ext_path}app/helpers/thing_helper.rb") |
65 | end |
66 | |
67 | it "should map nested helper example to nested helper" do |
68 | @autotest.should map_specs(["#{ext_path}spec/helpers/nest/thing_helper_spec.rb"]). |
69 | to("#{ext_path}app/helpers/nest/thing_helper.rb") |
70 | end |
71 | |
72 | it "should map lib example to lib" do |
73 | @autotest.should map_specs(["#{ext_path}spec/lib/thing_spec.rb"]). |
74 | to("#{ext_path}lib/thing.rb") |
75 | end |
76 | end |
77 | |
78 | def ext_path |
79 | 'vendor/extensions/extension/' |
80 | end |
81 | end |