Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added rspec and capybara

  • Loading branch information...
commit c8fe19b780e6943d62799ffe115a26680253f4f9 1 parent 05dbc9d
jipiboily authored
View
73 README.md
@@ -0,0 +1,73 @@
+# MONOLOGUE
+
+Somewhat basic mountable blogging engine in Rails built to be easily mounted in an already existing Rails app, but it can also be used alone.
+
+## Features
+- Rails mountable engine
+- fully named spaced
+- well tested
+- as less external dependencies as possible (no Devise or Sorcery, etc…) so we don't face problem integrating with existing Rails apps we add this engine in.
+
+- posts
+ - title
+ - publish date
+ - revisions (Choosing currently online revision with a "save & publish" button. Can rollback to a desired version)
+ - keywords
+ - categories
+ - content
+ - excerpt
+ - an author (logged user)
+- pages
+ - title
+ - revisions
+ - content
+- social sharing widgets (twitter, facebook and +1) in posts
+- preview mode
+- managing the menu (or turning it off) (from partials at first maybe?)
+
+- comments handled by disqus
+- some configurations in the env file (with Settingslogic probably)
+ - web site title
+ - web site url
+ - meta description
+ - social accounts (facebook, twitter, LinkedIn, etc)
+ - API keys for social sharing
+
+- using [Rails cache](http://edgeguides.rubyonrails.org/caching_with_rails.html) for better performance
+
+- runs on Heroku (must disable caching in main_app)
+
+
+## Installation
+
+## Technology
+- Rails 3.2
+- RSpec (+ travis CI), Factories, Guard, Capybara
+- MySQL & Postgres support (SQLite?)
+- Twitter Bootstrap for now...
+
+### Bonbons
+- PJAX (pour l'admin, et p-e pour le front)
+- BatmanJS (pour l'admin)
+
+## Models
+### posts
+### posts_revisions
+### keywords
+### categories
+
+
+## Ideas for the future
+
+- use [jQuery Waypoints](http://imakewebthings.github.com/jquery-waypoints/) to suggest another article (might be chosen from and?) once the article is read.
+ - An example: [See the "recommended story" once you reach the bottom of article](http://www.readwriteweb.com/archives/the_other_1_people_who_still_use_ie6.php)
+
+- plugins
+- themes (with Deface)
+
+- easy contact form for an about page
+- configurations in the database
+
+- multiple sites with only one intance
+
+## Contribute
View
3  README.rdoc
@@ -1,3 +0,0 @@
-= Monologue
-
-This project rocks and uses MIT-LICENSE.
View
6 Rakefile
@@ -16,7 +16,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Monologue'
rdoc.options << '--line-numbers'
- rdoc.rdoc_files.include('README.rdoc')
+# rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
@@ -26,3 +26,7 @@ load 'rails/tasks/engine.rake'
Bundler::GemHelper.install_tasks
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec)
+
+task :default => :spec
View
2  app/controllers/monologue/application_controller.rb
@@ -1,4 +1,4 @@
module Monologue
- class ApplicationController < ActionController::Base
+ class ApplicationController < ::ApplicationController
end
end
View
3  lib/monologue/engine.rb
@@ -1,5 +1,8 @@
module Monologue
class Engine < Rails::Engine
isolate_namespace Monologue
+
+ config.generators.integration_tool :rspec
+ config.generators.test_framework :rspec
end
end
View
2  monologue.gemspec
@@ -17,6 +17,8 @@ Gem::Specification.new do |s|
s.add_dependency "rails", "~> 3.1.3"
# s.add_dependency "jquery-rails"
+ s.add_development_dependency "rspec-rails", "~> 2.8"
+ s.add_development_dependency "capybara"
s.add_development_dependency "sqlite3"
end
View
14 spec/spec_helper.rb
@@ -0,0 +1,14 @@
+# Configure Rails Environment
+ENV["RAILS_ENV"] = "test"
+
+require File.expand_path("../dummy/config/environment.rb", __FILE__)
+require 'rspec/rails'
+
+Rails.backtrace_cleaner.remove_silencers!
+
+# Load support files
+Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
+
+RSpec.configure do |config|
+ config.use_transactional_fixtures = true
+end
View
7 spec/support/capybara.rb
@@ -0,0 +1,7 @@
+require 'capybara/rails'
+require 'capybara/dsl'
+RSpec.configure do |c|
+ c.include Capybara, :example_group => {
+ :file_path => /\bspec\/integration\//
+ }
+end
Please sign in to comment.
Something went wrong with that request. Please try again.