Skip to content
Closed
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,15 @@ group :development, :test do
end

group :production do
gem 'pg' # ugh heroku
gem 'pg' # ugh heroku..
end

group :test do
gem "simplecov", :require => false


gem "coveralls"

gem "mocha"
gem "database_cleaner"
gem "launchy"
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@

[hackety-hack.com][hh.com] is the web backend powering the collaborative features of [Hackety Hack][hh]. It is written in Rails 3 and continues to be under active development (see 'Helping Out'), the switch to Rails 3 happened quite recently so there's still lots to be done.

## Helping Out ##
### Helping Out ###

If you have any experience writing Rails apps, feel free to help out, we're open to pull requests as long as you follow a few conditions.

+ **Test your code**, we really can't stress this enough, ideally you should be practicing [TDD][tdd] and writing tests before you even write your code. If you don't test your code, we have no way of knowing if it works properly so please do test.
+ **If it's a major feature, file an issue**, if you file an issue we can discuss certain aspects of the new feature with you and ensure it's a good fit for hackety-hack.com.

## Translations ##

Hello everyone!

We are in the process of translating Hackety Hack into as many foreign languages as possible so that people around the world would be able to use the site with ease. If you are bilingual and interested in helping us make Hackety Hack a truly global phenomenon, accessible by all regardless of location or nationality, and make learning Ruby even more fun! then please sign up here http://crowdin.net/project/hackety-hackcom/invite

## Getting Started ##

Once you've cloned this repository, running `script/bootstrap` should tell you everything you need to know.
Expand Down
21 changes: 19 additions & 2 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,34 @@
# It is recommended to regenerate this file in the future when you upgrade to a
# newer version of cucumber-rails. Consider adding your own code to a new file
# instead of editing this one. Cucumber will automatically load all features/**/*.rb

# files..
#

require 'simplecov'
SimpleCov.start do
coverage_dir ('public/publix')
#add_filter '/features/'
add_filter '/spec/'
add_filter '/config/'
add_filter '/lib/'
add_filter '/vendor/'
#add_filter '/app/'

end

# files.
#

require_relative '../../spec/code_coverage'



require 'cucumber/rails'

# Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
# order to ease the transition to Capybara we set the default here. If you'd
# prefer to use XPath just remove this line and adjust any selectors in your
# steps to use the XPath syntax.
# steps to use the XPath syntax
Capybara.default_selector = :css

# By default, any exception happening in your Rails application will bubble up
Expand Down
13 changes: 11 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
require 'code_coverage'

require 'simplecov'
SimpleCov.start do
coverage_dir('public/publix')
#add_filter '/spec/'
add_filter '/config/'
add_filter '/lib/'
add_filter '/vendor/'
add_filter '/features/'
end

ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
Expand All @@ -7,7 +16,7 @@
require 'capybara/rspec'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
# in spec/support/ and its subdirectories
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}

RSpec.configure do |config|
Expand Down