Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:lyonrb/lyonrb
- Loading branch information
Showing
45 changed files
with
231 additions
and
141 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rvm use 1.9.2@lyonrb | ||
rvm_gemset_create_on_use_flag=1 |
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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
class CompaniesController < ApplicationController | ||
def list | ||
|
||
def index | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class EventsController < ApplicationController | ||
def list | ||
def index | ||
@events = Event.all | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
class PeopleController < ApplicationController | ||
def list | ||
|
||
def index | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
class ProjectsController < ApplicationController | ||
def list | ||
|
||
def index | ||
|
||
end | ||
|
||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
!!! | ||
%html{:manifest=>"application.manifest"} | ||
%html | ||
%head | ||
%meta{:charset=>"utf-8"}/ | ||
%title= yield :page_title | ||
|
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,5 +1,5 @@ | ||
!!! | ||
%html{:manifest=>"application.manifest"} | ||
%html | ||
%head | ||
%meta{:charset=>"utf-8"}/ | ||
%title= page_title | ||
|
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,12 +1,64 @@ | ||
require 'spec_helper' | ||
|
||
describe Admin::EventsController do | ||
|
||
include Devise::TestHelpers | ||
before :each do | ||
@user = member_login Factory(:member) | ||
@event = Factory(:event) | ||
end | ||
|
||
describe "GET 'index'" do | ||
it "should be successful" do | ||
get 'index' | ||
get :index | ||
response.should be_success | ||
end | ||
end | ||
|
||
describe 'show' do | ||
it 'should succeed' do | ||
get :show, :id => @event.to_param | ||
response.should be_success | ||
end | ||
end | ||
|
||
describe 'new' do | ||
it 'should succeed' do | ||
get :new | ||
response.should be_success | ||
end | ||
end | ||
|
||
describe 'create' do | ||
it 'should create a new event' do | ||
lambda do | ||
post :create, :event => Factory.attributes_for(:event) | ||
end.should change(Event, :count).by(1) | ||
response.should be_success | ||
end | ||
end | ||
|
||
describe 'edit' do | ||
it 'should succeed' do | ||
get :edit, :id => @event.to_param | ||
end | ||
end | ||
|
||
describe 'update' do | ||
it 'should update an event' do | ||
put :update, :id => @event.to_param, :event => {:name => 'RubyCamp'} | ||
response.should be_success | ||
@event.reload | ||
@event.name.should eql('RubyCamp') | ||
end | ||
end | ||
|
||
describe 'destroy' do | ||
it 'should destroy an event' do | ||
lambda do | ||
delete :destroy, :id => @event.to_param | ||
end.should change(Event, :count).by(-1) | ||
response.should be_redirect | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'spec_helper' | ||
|
||
describe Admin::IndexController do | ||
include Devise::TestHelpers | ||
before :each do | ||
@user = member_login Factory(:member) | ||
end | ||
|
||
describe 'index' do | ||
it 'should succeed' do | ||
get :index | ||
response.should be_success | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require 'spec_helper' | ||
|
||
describe CompaniesController do | ||
include Devise::TestHelpers | ||
|
||
describe 'index' do | ||
it 'should succeed' do | ||
get :index | ||
response.should be_success | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require 'spec_helper' | ||
|
||
describe EventsController do | ||
include Devise::TestHelpers | ||
|
||
describe 'index' do | ||
it 'should succeed' do | ||
get :index | ||
response.should be_success | ||
end | ||
end | ||
end |
Oops, something went wrong.
9fc3753
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know when pulling after having committed locally, you can do :
This will fetch and rebase instead of merging. That avoids those weirds merge logs :)
9fc3753
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I know... I've been a bit lazy on that one :)