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
NoMethodError in AdminController#index | |
undefined method `parents' for nil:NilClass | |
RAILS_ROOT: /home/david/trisano-ee/webapp | |
Application Trace | Framework Trace | Full Trace | |
/home/david/trisano-ee/webapp/vendor/rails/activesupport/lib/active_support/whiny_nil.rb:52:in `method_missing' | |
/home/david/trisano-ee/webapp/vendor/plugins/globalize2/lib/globalize/locale/fallbacks.rb:54:in `compute' | |
/home/david/trisano-ee/webapp/vendor/plugins/globalize2/lib/globalize/locale/fallbacks.rb:53:in `collect' | |
/home/david/trisano-ee/webapp/vendor/plugins/globalize2/lib/globalize/locale/fallbacks.rb:53:in `compute' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Context path="/pentaho" docbase="webapps/pentaho/"> | |
<Resource name="jdbc/Hibernate" auth="Container" type="javax.sql.DataSource" | |
factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20" maxIdle="5" | |
maxWait="10000" username="hibuser" password="hibpasswd" | |
driverClassName="org.postgresql.Driver" url="jdbc:postgresql://localhost:5432/hibernate" | |
validationQuery="select 1" /> | |
<Resource name="jdbc/Quartz" auth="Container" type="javax.sql.DataSource" | |
factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20" maxIdle="5" |
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
Scenario: Selecting an outbreak while editing a CMR # vendor/plugins/outbreak_management/features/standard/assign_cmr_to_outbreak.feature:6 | |
Given I am logged in as a super user # features/standard_step_definitions/common_helper_steps.rb:22 | |
And a simple morbidity event for last name Smoker # features/standard_step_definitions/new_cmr_event_search_steps.rb:18 | |
And the disease is "Vampirism" # features/standard_step_definitions/event_steps.rb:107 | |
And the following outbreaks exist: # vendor/plugins/outbreak_management/features/standard_step_definitions/outbreak_management_steps.rb:27 | |
| event_name | disease_name | | |
| Vampirism Outbreak | Vampirism | | |
| Lycanthropy OB 2009 | Lycanthropy | | |
When I go to edit the CMR # features/standard_step_definitions/webrat_steps.rb:27 | |
And I select "Vampirism Outbreak" |
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
describe "finding outbreak events for a disease" do | |
it "should only find outbreak events for a particular disease" do | |
oes = [] | |
3.times do | |
oe = OutbreakEvent.new | |
oe.event_name = "Bad news bears" | |
oe.build_jurisdiction :secondary_entity => entities(:Southeastern_District) | |
oe.build_disease_event :disease => Factory(:disease) | |
oe.save! | |
oes << oe |
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
%td | |
%span.user-status | |
=h(t("user_statuses.#{user.status}")) |
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
.bodyLeft | |
.bodyMainWrapper | |
.bodyMain | |
- form_for @achievement do |f| | |
= hidden_field_tag :user_id, @user.id | |
%table.tablesorter | |
%thead | |
%tr | |
%th | |
%th{:style => "width:10em;"} Name |
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
- f.fields_for :user_achievements do |child_form| | |
- if child_form.object.user == @user #This is stupid and dangerous | |
= blah blah blah | |
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
Factory.define :user do |u| | |
u.email { Factory.next(:email) } | |
u.password 'word' | |
u.first_name 'John' | |
u.last_name 'Doe' | |
u.troop_role_users { |troop_role_users| [troop_role_users.association(:troop_role_user)] } | |
end | |
Factory.define :troop do |t| | |
#t.troop_role_users { |troop_role_users| [troop_role_users.association(:troop_role_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
-- | |
-- PostgreSQL database dump | |
-- | |
SET client_encoding = 'UTF8'; | |
SET standard_conforming_strings = off; | |
SET check_function_bodies = false; | |
SET client_min_messages = warning; | |
SET escape_string_warning = off; |
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
Feature: Authentication | |
To authenticate users | |
A user interface is needed that can handle user authentication | |
Scenario: Logging in with good credentials | |
Given I am not logged in | |
When I go to the login page | |
And I login with good credentials | |
Then I should find a logout link |