Skip to content

Commit

Permalink
Fix tests after 4f6f444
Browse files Browse the repository at this point in the history
  • Loading branch information
daronco committed Mar 3, 2017
1 parent 4f6f444 commit 450c4d6
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion config/reserved_words.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
words:
- account
- activity
- admin
- api
- assets
- blog
Expand Down
2 changes: 1 addition & 1 deletion spec/features/feedback_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def send_feedback subj, message, email=nil

describe 'as a signed in user' do
before {
@user = FactoryGirl.create(:user, :username => 'user', :password => 'password')
@user = FactoryGirl.create(:user, :username => 'user-1', :password => 'password')
login_as(@user, :as => :user)
visit new_feedback_path
}
Expand Down
4 changes: 2 additions & 2 deletions spec/features/ldap/misconfiguration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
port = Mconf::LdapServer.default_ldap_configs[:ldap_port]
Site.current.update_attributes ldap_port: port + 1

user = FactoryGirl.create(:user, username: 'user', password: 'password')
user = FactoryGirl.create(:user, username: 'user-1', password: 'password')
sign_in_with user.email, user.password

expect(page).to have_title(I18n.t('home.my'))
Expand All @@ -34,7 +34,7 @@
scenario "doesn't break the local sign in with unreacheable server" do
Site.current.update_attributes ldap_host: "nonexistanturl.doesntexist"

user = FactoryGirl.create(:user, username: 'user', password: 'password')
user = FactoryGirl.create(:user, username: 'user-1', password: 'password')
sign_in_with user.email, user.password

expect(page).to have_title(I18n.t('home.my'))
Expand Down
2 changes: 1 addition & 1 deletion spec/features/redirect_back_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
feature 'Visitor logs in and is redirected back to a sane URL' do

before(:each) {
@user = FactoryGirl.create(:user, :username => 'user', :password => 'password')
@user = FactoryGirl.create(:user, :username => 'user-1', :password => 'password')
}

context 'when referer is blank' do
Expand Down
2 changes: 1 addition & 1 deletion spec/features/visitor_logs_in_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

feature 'Visitor logs in' do
before(:each) {
@user = FactoryGirl.create(:user, :username => 'user', :password => 'password')
@user = FactoryGirl.create(:user, :username => 'user-1', :password => 'password')
page.driver.header 'Referer', "http://#{Site.current.domain}"
}

Expand Down
2 changes: 2 additions & 0 deletions spec/routing/custom_bigbluebutton_rooms_routing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
}
after {
configatron.conf.scope_rooms = @previous
Rails.application.reload_routes!
}
it { should route(:get, "/webconf/my-room").to(action: :invite_userid, id: "my-room") }
end
Expand All @@ -40,6 +41,7 @@
}
after {
configatron.conf.scope_rooms = @previous
Rails.application.reload_routes!
}
it { should route(:get, "/my-room").to(action: :invite_userid, id: "my-room") }
end
Expand Down
2 changes: 0 additions & 2 deletions spec/routing/users_routing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@
it { should route(:post, "/users").to(:action => :create) }
it { should route(:post, "/users/u1/approve").to(:action => :approve, :id => "u1") }
it { should route(:post, "/users/u1/disapprove").to(:action => :disapprove, :id => "u1") }

it { { get: "/users" }.should_not be_routable }
end
end
2 changes: 1 addition & 1 deletion spec/support/mconf_ldap_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def add_default_user

def self.default_user
{
username: 'mconf',
username: 'mconf-user',
password: 'mconf',
email: '[email protected]'
}
Expand Down

0 comments on commit 450c4d6

Please sign in to comment.