kelredd-sinatra-helpers 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -54,10 +54,3 @@ task :gemspec do
54
54
  File.open(file, 'w') {|f| f << spec.to_ruby }
55
55
  puts "Created gemspec: #{file}"
56
56
  end
57
-
58
- require 'cucumber'
59
- require 'cucumber/rake/task'
60
-
61
- Cucumber::Rake::Task.new(:features) do |t|
62
- t.cucumber_opts = "test/features --format pretty"
63
- end
@@ -1,15 +1,22 @@
1
1
  require 'test_helper'
2
2
 
3
- class AppTest < Test::Unit::TestCase
3
+ class LayoutTest < Test::Unit::TestCase
4
4
 
5
5
  def app
6
6
  Sinatra::Application
7
7
  end
8
8
 
9
- context "The app" do
9
+ context "The app's layout" do
10
10
 
11
- should "say hello" do
11
+ before do
12
12
  visit '/'
13
+ end
14
+
15
+
16
+ # TODO: write better tests...
17
+ # => this is just for show :)
18
+
19
+ should "say hello" do
13
20
  assert_contain "Hello from <%= @class_name %>!"
14
21
  end
15
22
 
@@ -60,7 +60,7 @@ module SinatraHelpers::Generator
60
60
  :test => {
61
61
  'test_helper.rb.erb' => 'test_helper.rb',
62
62
  :functional => {
63
- 'app_test.rb.erb' => 'app_test.rb'
63
+ 'layout_test.rb.erb' => 'layout_test.rb'
64
64
  },
65
65
  :unit => {
66
66
  'model_test.rb.erb' => 'model_test.rb'
@@ -14,7 +14,7 @@ module SinatraHelpers::Sprockets
14
14
  [the_args, {}]
15
15
  end
16
16
 
17
- options[:environment] ||= SinatraHelpers::Less.app.environment.to_s
17
+ options[:environment] ||= SinatraHelpers::Sprockets.app.environment.to_s
18
18
 
19
19
  javascript_include_tag srcs, options
20
20
  end
@@ -3,7 +3,7 @@ module SinatraHelpers
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- TINY = 7
6
+ TINY = 8
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-sinatra-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-28 00:00:00 -06:00
12
+ date: 2010-02-08 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -41,7 +41,6 @@ files:
41
41
  - lib/sinatra_helpers/generator/file_templates/app.js.erb
42
42
  - lib/sinatra_helpers/generator/file_templates/app.less.erb
43
43
  - lib/sinatra_helpers/generator/file_templates/app.rb.erb
44
- - lib/sinatra_helpers/generator/file_templates/app_test.rb.erb
45
44
  - lib/sinatra_helpers/generator/file_templates/boot.rb.erb
46
45
  - lib/sinatra_helpers/generator/file_templates/Capfile.erb
47
46
  - lib/sinatra_helpers/generator/file_templates/console.erb
@@ -56,6 +55,7 @@ files:
56
55
  - lib/sinatra_helpers/generator/file_templates/gitignore.erb
57
56
  - lib/sinatra_helpers/generator/file_templates/index.html.erb.erb
58
57
  - lib/sinatra_helpers/generator/file_templates/layout
58
+ - lib/sinatra_helpers/generator/file_templates/layout_test.rb.erb
59
59
  - lib/sinatra_helpers/generator/file_templates/model_test.rb.erb
60
60
  - lib/sinatra_helpers/generator/file_templates/production.ru.erb
61
61
  - lib/sinatra_helpers/generator/file_templates/Rakefile.erb