This file contains hidden or 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
| # == Schema Information | |
| # | |
| # Table name: libraries | |
| # | |
| # id :integer not null, primary key | |
| # image :string(255) | |
| # file_size :integer | |
| # user_id :integer | |
| # content_type :string(255) | |
| # created_at :datetime not null |
This file contains hidden or 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
| development: | |
| MONGOHQ_URL: mongodb://localhost/kanbanpad_development | |
| FEEDBACK_EMAIL: 'you@hybridgroup.com' | |
| REDISTOGO_URL: redis://127.0.0.1:6379 | |
| DOMAIN: localhost:4567 | |
| KISSMETRICS_ID: 95c4984820cffbce2f98ab670b61178bf828d897 | |
| KB_WORKER: '0' | |
| KB_EMAIL_OUTPUT: '1' | |
| KB_NO_EMAIL: '1' | |
| test: |
This file contains hidden or 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
| on(:notify_collaborators, :'email/notify_collaborator') do |activity, opts| | |
| task = activity.ancient | |
| task.assigned_to.each do |username| | |
| user = User.where(:nick => username).first | |
| require 'pry' | |
| binding.pry | |
| t = R18n.set(user.lang || 'en', 'i18n') | |
| emailer = Emailer.new(user.formatted_email, "You have been added to x project") | |
| emailer.lang = (user.lang || 'en') | |
| emailer.send!(:'email/notify_collaborator', :user => user) |
This file contains hidden or 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
| on(:notify_collaborators, :'email/notify_collaborator') do |activity, opts| | |
| task = activity.ancient | |
| task.assigned_to.each do |username| | |
| user = User.where(:nick => username).first | |
| t = R18n.set(user.lang || 'en', 'i18n') | |
| emailer = Emailer.new(user.formatted_email, "You have been added to x project") | |
| emailer.lang = (user.lang || 'en') | |
| emailer.send!(:'email/notify_collaborator', :user => user) | |
| end | |
| end |
This file contains hidden or 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
| GIT | |
| remote: git://github.com/heroku/rails3_serve_static_assets.git | |
| revision: 84910ceb4ca2851d650e66d3b22f5008acf253f8 | |
| specs: | |
| rails3_serve_static_assets (0.0.1) | |
| GIT | |
| remote: git://github.com/heroku/rails_log_stdout.git | |
| revision: 01b5bcc572e3baed1618f4068920dd83bd491fb2 | |
| specs: |
This file contains hidden or 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
| it "should be able to create a land" do | |
| params[:property][:property_details_attributes] = FactoryGirl.attributes_for(:land_property) | |
| params[:property][:property_details_attributes][:address_attributes] = FactoryGirl.attributes_for(:address) | |
| params[:type] = "land_property" | |
| xhr :post, :create, params | |
| response.should be_success | |
| body = JSON.parse(response.body) | |
| body['msg'].should == "Successfully create property" |
This file contains hidden or 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
| # Read about factories at https://github.com/thoughtbot/factory_girl | |
| FactoryGirl.define do | |
| factory :property do | |
| end | |
| factory :office_property do | |
| building_size 300 | |
| land_area 200 |
This file contains hidden or 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 is copied to spec/ when you run 'rails generate rspec:install' | |
| ENV["RAILS_ENV"] ||= 'test' | |
| require File.expand_path("../../config/environment", __FILE__) | |
| require 'rspec/rails' | |
| require 'email_spec' | |
| require 'rspec/autorun' | |
| # Requires supporting ruby files with custom matchers and macros, etc, | |
| # in spec/support/ and its subdirectories. | |
| Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} |
This file contains hidden or 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
| module Offmarket | |
| class Application < Rails::Application | |
| # don't generate RSpec tests for views and helpers | |
| config.generators do |g| | |
| g.test_framework :rspec, fixture: true | |
| g.fixture_replacement :factory_girl, dir: 'spec/factories' | |
| g.view_specs false | |
| g.helper_specs false |
This file contains hidden or 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
| cristianvg2003@gmail.com | Cristian Vasquez | |
|---|---|---|
| juan@gmail.com | Juan Perez | |
| pedro@gmail.com | Pedro Jaramillo |