-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53d093b
commit ae7d28b
Showing
51 changed files
with
9,689 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,6 @@ | ||
log/* | ||
tmp/**/* | ||
tmp/ | ||
db/schema.rb | ||
db/*.sqlite3 | ||
public/system | ||
*.DS_Store | ||
coverage/* | ||
coverage* | ||
*.swp | ||
public/announcement.html | ||
|
||
!.keep | ||
.sass-cache | ||
.bundle/ | ||
log/*.log | ||
pkg/ | ||
spec/dummy/db/*.sqlite3 | ||
spec/dummy/log/*.log | ||
spec/dummy/tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
source "http://rubygems.org" | ||
|
||
gem "rails", "3.0.10" | ||
gem "capybara", ">= 0.4.0" | ||
gem "sqlite3" | ||
|
||
gem "rspec-rails", ">= 2.0.0.beta" | ||
|
||
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+) | ||
# gem 'ruby-debug' | ||
# gem 'ruby-debug19' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
abstract (1.0.0) | ||
actionmailer (3.0.10) | ||
actionpack (= 3.0.10) | ||
mail (~> 2.2.19) | ||
actionpack (3.0.10) | ||
activemodel (= 3.0.10) | ||
activesupport (= 3.0.10) | ||
builder (~> 2.1.2) | ||
erubis (~> 2.6.6) | ||
i18n (~> 0.5.0) | ||
rack (~> 1.2.1) | ||
rack-mount (~> 0.6.14) | ||
rack-test (~> 0.5.7) | ||
tzinfo (~> 0.3.23) | ||
activemodel (3.0.10) | ||
activesupport (= 3.0.10) | ||
builder (~> 2.1.2) | ||
i18n (~> 0.5.0) | ||
activerecord (3.0.10) | ||
activemodel (= 3.0.10) | ||
activesupport (= 3.0.10) | ||
arel (~> 2.0.10) | ||
tzinfo (~> 0.3.23) | ||
activeresource (3.0.10) | ||
activemodel (= 3.0.10) | ||
activesupport (= 3.0.10) | ||
activesupport (3.0.10) | ||
arel (2.0.10) | ||
builder (2.1.2) | ||
capybara (1.0.0) | ||
mime-types (>= 1.16) | ||
nokogiri (>= 1.3.3) | ||
rack (>= 1.0.0) | ||
rack-test (>= 0.5.4) | ||
selenium-webdriver (~> 0.2.0) | ||
xpath (~> 0.1.4) | ||
childprocess (0.2.2) | ||
ffi (~> 1.0.6) | ||
diff-lcs (1.1.3) | ||
erubis (2.6.6) | ||
abstract (>= 1.0.0) | ||
ffi (1.0.9) | ||
i18n (0.5.0) | ||
json_pure (1.5.4) | ||
spruz (~> 0.2.8) | ||
mail (2.2.19) | ||
activesupport (>= 2.3.6) | ||
i18n (>= 0.4.0) | ||
mime-types (~> 1.16) | ||
treetop (~> 1.4.8) | ||
mime-types (1.16) | ||
nokogiri (1.5.0) | ||
polyglot (0.3.2) | ||
rack (1.2.3) | ||
rack-mount (0.6.14) | ||
rack (>= 1.0.0) | ||
rack-test (0.5.7) | ||
rack (>= 1.0) | ||
rails (3.0.10) | ||
actionmailer (= 3.0.10) | ||
actionpack (= 3.0.10) | ||
activerecord (= 3.0.10) | ||
activeresource (= 3.0.10) | ||
activesupport (= 3.0.10) | ||
bundler (~> 1.0) | ||
railties (= 3.0.10) | ||
railties (3.0.10) | ||
actionpack (= 3.0.10) | ||
activesupport (= 3.0.10) | ||
rake (>= 0.8.7) | ||
rdoc (~> 3.4) | ||
thor (~> 0.14.4) | ||
rake (0.9.2) | ||
rdoc (3.9.4) | ||
rspec (2.6.0) | ||
rspec-core (~> 2.6.0) | ||
rspec-expectations (~> 2.6.0) | ||
rspec-mocks (~> 2.6.0) | ||
rspec-core (2.6.4) | ||
rspec-expectations (2.6.0) | ||
diff-lcs (~> 1.1.2) | ||
rspec-mocks (2.6.0) | ||
rspec-rails (2.6.1) | ||
actionpack (~> 3.0) | ||
activesupport (~> 3.0) | ||
railties (~> 3.0) | ||
rspec (~> 2.6.0) | ||
rubyzip (0.9.4) | ||
selenium-webdriver (0.2.2) | ||
childprocess (>= 0.1.9) | ||
ffi (>= 1.0.7) | ||
json_pure | ||
rubyzip | ||
spruz (0.2.13) | ||
sqlite3 (1.3.4) | ||
thor (0.14.6) | ||
treetop (1.4.10) | ||
polyglot | ||
polyglot (>= 0.3.1) | ||
tzinfo (0.3.29) | ||
xpath (0.1.4) | ||
nokogiri (~> 1.3) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
capybara (>= 0.4.0) | ||
rails (= 3.0.10) | ||
rspec-rails (>= 2.0.0.beta) | ||
sqlite3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
# encoding: utf-8 | ||
# encoding: UTF-8 | ||
require 'rubygems' | ||
begin | ||
require 'bundler/setup' | ||
rescue LoadError | ||
puts 'You must `gem install bundler` and `bundle install` to run rake tasks' | ||
end | ||
|
||
require 'rake' | ||
require 'rake/testtask' | ||
require 'rake/rdoctask' | ||
require 'rdoc/task' | ||
|
||
desc 'Default: run unit tests.' | ||
task :default => :test | ||
require 'rspec/core' | ||
require 'rspec/core/rake_task' | ||
|
||
Rake::TestTask.new(:test) do |t| | ||
t.libs << 'lib' | ||
t.libs << 'test' | ||
t.pattern = 'test/**/*_test.rb' | ||
t.verbose = true | ||
end | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => :spec | ||
|
||
Rake::RDocTask.new(:rdoc) do |rdoc| | ||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = 'Flutie' | ||
rdoc.options << '--line-numbers' << '--inline-source' | ||
rdoc.rdoc_files.include('README') | ||
rdoc.rdoc_files.include('README.rdoc') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
require 'spec_helper' | ||
|
||
ActionController::Base.prepend_view_path File.join(File.dirname(__FILE__), '..', '..', 'app', 'views') | ||
ActionController::Base.prepend_view_path File.join(File.dirname(__FILE__), '..', 'fixtures', 'app', 'views') | ||
|
||
describe Flutie::StyleguidesController do | ||
|
||
render_views | ||
|
||
describe "GET to /styleguides/show" do | ||
before { get :show } | ||
it "should respond with success and render template" do | ||
response.should be_success | ||
response.should render_template(:show) | ||
end | ||
it "should use application layout" do | ||
response.should render_template('layouts/application') | ||
end | ||
it "should render valid xml" do | ||
lambda { REXML::Document.new(response.body) }.should_not raise_error | ||
end | ||
it "should render styleguide partials" do | ||
response.body.should =~ %r{fixture partial 1} | ||
response.body.should =~ %r{fixture partial 2} | ||
end | ||
end | ||
|
||
describe "GET to /styleguides/show with flutie=false" do | ||
before { get :show, :flutie => "false" } | ||
it "should respond with success and render template" do | ||
response.should be_success | ||
response.should render_template(:show) | ||
end | ||
it "should use application layout" do | ||
response.should render_template('layouts/application') | ||
end | ||
it "should render valid xml" do | ||
lambda { REXML::Document.new(response.body) }.should_not raise_error | ||
end | ||
it "should render styleguide partials" do | ||
response.body.should =~ %r{fixture partial 1} | ||
response.body.should =~ %r{fixture partial 2} | ||
end | ||
end | ||
|
||
describe "GET to /styleguides/show with flutie=true" do | ||
before { get :show, :flutie => "true" } | ||
it "should respond with success and render template" do | ||
response.should be_success | ||
response.should render_template(:show) | ||
end | ||
it "should use flutie layout" do | ||
response.should render_template('layouts/flutie') | ||
end | ||
it "should render valid xml" do | ||
lambda { REXML::Document.new(response.body) }.should_not raise_error | ||
end | ||
it "should render styleguide partials" do | ||
response.body.should =~ %r{fixture partial 1} | ||
response.body.should =~ %r{fixture partial 2} | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Dummy</title> | ||
<%= stylesheet_link_tag :all %> | ||
<%= javascript_include_tag :defaults %> | ||
<%= csrf_meta_tag %> | ||
</head> | ||
<body> | ||
|
||
<%= yield %> | ||
|
||
</body> | ||
</html> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'rubygems' | ||
gemfile = File.expand_path('../../../../Gemfile', __FILE__) | ||
|
||
if File.exist?(gemfile) | ||
ENV['BUNDLE_GEMFILE'] = gemfile | ||
require 'bundler' | ||
Bundler.setup | ||
end | ||
|
||
$:.unshift File.expand_path('../../../../lib', __FILE__) |
2 changes: 1 addition & 1 deletion
2
test/dummy/config/database.yml → spec/dummy/config/database.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.