public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
specs for app generation now check for root folders
automatthew (author)
Tue Jul 08 17:24:28 -0700 2008
commit  d0b39731347148eef7dc1b663570d2552b1f508b
tree    ea4e2654a78238edff230e55a797d240ff57e5da
parent  2f7dcb044f94b92679f016f7d2bf0ef95e3d37bf
...
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
...
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
34
35
36
37
38
39
0
@@ -5,26 +5,35 @@ require File.join(File.dirname(__FILE__) , "helpers")
0
 clobber_test_app(AppPath)
0
 generate_test_app(AppPath)
0
 
0
-describe "startup.rb in a generated app" do
0
+describe "A generated application" do
0
   
0
- it "should make the scripts executable" do
0
+ it "has executable script files" do
0
     File.executable?(File.join(AppPath, "bin", "waves-console")).should.be.true
0
   end
0
 
0
- it "should fail to find waves framework, if gem is not available" do
0
+ it "will fail to find waves framework, if the gem is not available" do
0
     Dir.chdir(AppPath) do
0
       stdin, stdout, stderr = Open3.popen3("ruby startup.rb")
0
       stderr.gets.should =~ %r{no such file to load -- waves \(LoadError\)}
0
     end
0
   end
0
 
0
- it "should find and use waves framework source when WAVES is defined" do
0
+ it "will find and use waves framework source when WAVES is defined" do
0
     set_framework_path(AppPath)
0
     Dir.chdir(AppPath) do
0
       stdin, stdout, stderr = Open3.popen3("ruby startup.rb")
0
       stderr.gets.should == nil
0
     end
0
   end
0
+
0
+ it "has the directories we expect it to have" do
0
+ dirs = %w{ bin/ configurations/ controllers/ doc/ helpers/ lib/
0
+ log/ models/ public/ schema/ templates/ tmp/ views/ }
0
+ Dir.chdir(AppPath) do
0
+ Dir.glob("*/").should == dirs
0
+ end
0
+ end
0
+
0
 end
0
 
0
 clobber_test_app(AppPath)

Comments

    No one has commented yet.