GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

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  9212c67a0e30aa5bb0efc7fba7405af2c44bbcd7
tree    223831ea5e33fa72404dd5c3735dc7cfcbc0baaa
parent  b5994513ac2c47d7faf0fa9955e4c27e11205727
...
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.