Created
May 23, 2011 17:10
-
-
Save goganchic/987072 to your computer and use it in GitHub Desktop.
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
Pending: | |
Role add some examples to (or delete) /home/ebaranov/workspace/scheduler/patient-scheduler-ruslan/spec/models/role_spec.rb | |
# Not Yet Implemented | |
# ./spec/models/role_spec.rb:4 | |
EventType add some examples to (or delete) /home/ebaranov/workspace/scheduler/patient-scheduler-ruslan/spec/models/event_type_spec.rb | |
# Not Yet Implemented | |
# ./spec/models/event_type_spec.rb:4 | |
UsersHelper add some examples to (or delete) /home/ebaranov/workspace/scheduler/patient-scheduler-ruslan/spec/helpers/users_helper_spec.rb | |
# Not Yet Implemented | |
# ./spec/helpers/users_helper_spec.rb:14 | |
PatientsHelper add some examples to (or delete) /home/ebaranov/workspace/scheduler/patient-scheduler-ruslan/spec/helpers/patients_helper_spec.rb | |
# Not Yet Implemented | |
# ./spec/helpers/patients_helper_spec.rb:14 | |
EventsHelper add some examples to (or delete) /home/ebaranov/workspace/scheduler/patient-scheduler-ruslan/spec/helpers/events_helper_spec.rb | |
# Not Yet Implemented | |
# ./spec/helpers/events_helper_spec.rb:14 | |
CalendarHelper add some examples to (or delete) /home/ebaranov/workspace/scheduler/patient-scheduler-ruslan/spec/helpers/calendar_helper_spec.rb | |
# Not Yet Implemented | |
# ./spec/helpers/calendar_helper_spec.rb:14 | |
ResourcesHelper add some examples to (or delete) /home/ebaranov/workspace/scheduler/patient-scheduler-ruslan/spec/helpers/resources_helper_spec.rb | |
# Not Yet Implemented | |
# ./spec/helpers/resources_helper_spec.rb:14 | |
AdminHelper add some examples to (or delete) /home/ebaranov/workspace/scheduler/patient-scheduler-ruslan/spec/helpers/admin_helper_spec.rb | |
# Not Yet Implemented | |
# ./spec/helpers/admin_helper_spec.rb:14 | |
EventTypesHelper add some examples to (or delete) /home/ebaranov/workspace/scheduler/patient-scheduler-ruslan/spec/helpers/event_types_helper_spec.rb | |
# Not Yet Implemented | |
# ./spec/helpers/event_types_helper_spec.rb:14 | |
calendar/index.html.erb add some examples to (or delete) /home/ebaranov/workspace/scheduler/patient-scheduler-ruslan/spec/views/calendar/index.html.erb_spec.rb | |
# Not Yet Implemented | |
# ./spec/views/calendar/index.html.erb_spec.rb:4 | |
users/edit.html.erb should require confirmation with password | |
# Not Yet Implemented | |
# ./spec/views/users/edit.html.erb_spec.rb:17 | |
Failures: | |
1) UsersController GET index assigns all users as @users | |
Failure/Error: assigns(:users).should eq([mock_user]) | |
RSpec::Mocks::Mock#to_ary should return Array | |
# ./spec/controllers/users_controller_spec.rb:19 | |
2) UsersController GET show assigns the requested user as @user | |
Failure/Error: get :show, :id => "37" | |
<User(id: integer, email: string, encrypted_password: string, password_salt: string, reset_password_token: string, remember_token: string, remember_created_at: datetime, sign_in_count: integer, current_sign_in_at: datetime, last_sign_in_at: datetime, current_sign_in_ip: string, last_sign_in_ip: string, created_at: datetime, updated_at: datetime, role_id: integer, username: string) (class)> received :find with unexpected arguments | |
expected: ("37") | |
got: (:first, {:conditions=>{:id=>2}}) | |
# ./spec/controllers/users_controller_spec.rb:26 | |
3) UsersController GET edit assigns the requested user as @user | |
Failure/Error: get :edit, :id => "37" | |
<User(id: integer, email: string, encrypted_password: string, password_salt: string, reset_password_token: string, remember_token: string, remember_created_at: datetime, sign_in_count: integer, current_sign_in_at: datetime, last_sign_in_at: datetime, current_sign_in_ip: string, last_sign_in_ip: string, created_at: datetime, updated_at: datetime, role_id: integer, username: string) (class)> received :find with unexpected arguments | |
expected: ("37") | |
got: (:first, {:conditions=>{:id=>4}}) | |
# ./spec/controllers/users_controller_spec.rb:42 | |
4) UsersController POST create with valid params assigns a newly created user as @user | |
Failure/Error: post :create, :user => {'these' => 'params'} | |
<User(id: integer, email: string, encrypted_password: string, password_salt: string, reset_password_token: string, remember_token: string, remember_created_at: datetime, sign_in_count: integer, current_sign_in_at: datetime, last_sign_in_at: datetime, current_sign_in_ip: string, last_sign_in_ip: string, created_at: datetime, updated_at: datetime, role_id: integer, username: string) (class)> received :new with unexpected arguments | |
expected: ({"these"=>"params"}) | |
got: (no args) | |
# ./spec/controllers/users_controller_spec.rb:52 | |
5) UsersController POST create with valid params redirects to the created user | |
Failure/Error: response.should redirect_to(user_url(mock_user)) | |
Expected response to be a redirect to <http://test.host/users/1003> but was a redirect to <http://test.host/>. | |
# ./spec/controllers/users_controller_spec.rb:59 | |
6) UsersController POST create with invalid params assigns a newly created but unsaved user as @user | |
Failure/Error: post :create, :user => {'these' => 'params'} | |
<User(id: integer, email: string, encrypted_password: string, password_salt: string, reset_password_token: string, remember_token: string, remember_created_at: datetime, sign_in_count: integer, current_sign_in_at: datetime, last_sign_in_at: datetime, current_sign_in_ip: string, last_sign_in_ip: string, created_at: datetime, updated_at: datetime, role_id: integer, username: string) (class)> received :new with unexpected arguments | |
expected: ({"these"=>"params"}) | |
got: (no args) | |
# ./spec/controllers/users_controller_spec.rb:66 | |
7) UsersController POST create with invalid params re-renders the 'new' template | |
Failure/Error: response.should render_template("new") | |
expecting <"new"> but rendering with <""> | |
# ./spec/controllers/users_controller_spec.rb:73 | |
8) UsersController PUT update with valid params updates the requested user | |
Failure/Error: put :update, :id => "37", :user => {'these' => 'params'} | |
<User(id: integer, email: string, encrypted_password: string, password_salt: string, reset_password_token: string, remember_token: string, remember_created_at: datetime, sign_in_count: integer, current_sign_in_at: datetime, last_sign_in_at: datetime, current_sign_in_ip: string, last_sign_in_ip: string, created_at: datetime, updated_at: datetime, role_id: integer, username: string) (class)> received :find with unexpected arguments | |
expected: ("37") | |
got: (:first, {:conditions=>{:id=>9}}) | |
# ./spec/controllers/users_controller_spec.rb:85 | |
9) UsersController PUT update with valid params assigns the requested user as @user | |
Failure/Error: assigns(:user).should be(mock_user) | |
expected #<User:113122850> => #<User:0x6be1e22 @name="User_1006"> | |
got #<NilClass:4> => nil | |
Compared using equal?, which compares object identity, | |
but expected and actual are not the same object. Use | |
'actual.should == expected' if you don't care about | |
object identity in this example. | |
# ./spec/controllers/users_controller_spec.rb:91 | |
10) UsersController PUT update with valid params redirects to the user | |
Failure/Error: response.should redirect_to(user_url(mock_user)) | |
Expected response to be a redirect to <http://test.host/users/1007> but was a redirect to <http://test.host/users/sign_in>. | |
# ./spec/controllers/users_controller_spec.rb:97 | |
11) UsersController PUT update with invalid params assigns the user as @user | |
Failure/Error: assigns(:user).should be(mock_user) | |
expected #<User:112979880> => #<User:0x6bbefa8 @name="User_1008"> | |
got #<NilClass:4> => nil | |
Compared using equal?, which compares object identity, | |
but expected and actual are not the same object. Use | |
'actual.should == expected' if you don't care about | |
object identity in this example. | |
# ./spec/controllers/users_controller_spec.rb:105 | |
12) UsersController PUT update with invalid params re-renders the 'edit' template | |
Failure/Error: response.should render_template("edit") | |
expecting <"edit"> but rendering with <""> | |
# ./spec/controllers/users_controller_spec.rb:111 | |
13) UsersController DELETE destroy destroys the requested user | |
Failure/Error: delete :destroy, :id => "37" | |
<User(id: integer, email: string, encrypted_password: string, password_salt: string, reset_password_token: string, remember_token: string, remember_created_at: datetime, sign_in_count: integer, current_sign_in_at: datetime, last_sign_in_at: datetime, current_sign_in_ip: string, last_sign_in_ip: string, created_at: datetime, updated_at: datetime, role_id: integer, username: string) (class)> received :find with unexpected arguments | |
expected: ("37") | |
got: (:first, {:conditions=>{:id=>14}}) | |
# ./spec/controllers/users_controller_spec.rb:121 | |
14) UsersController DELETE destroy redirects to the users list | |
Failure/Error: response.should redirect_to(users_url) | |
Expected response to be a redirect to <http://test.host/users> but was a redirect to <http://test.host/users/sign_in>. | |
# ./spec/controllers/users_controller_spec.rb:127 | |
15) ResourcesController GET index assigns all resources as @resources | |
Failure/Error: assigns(:resources).should eq([mock_resource]) | |
RSpec::Mocks::Mock#to_ary should return Array | |
# ./spec/controllers/resources_controller_spec.rb:19 | |
16) ResourcesController POST create with valid params assigns a newly created resource as @resource | |
Failure/Error: post :create, :resource => {'these' => 'params'} | |
<Resource(id: integer, name: string, created_at: datetime, updated_at: datetime, ordinal: integer) (class)> received :new with unexpected arguments | |
expected: ({"these"=>"params"}) | |
got: (no args) | |
# ./spec/controllers/resources_controller_spec.rb:52 | |
17) ResourcesController POST create with valid params redirects to the created resource | |
Failure/Error: response.should redirect_to(resource_url(mock_resource)) | |
Expected response to be a redirect to <http://test.host/resources/1016> but was a redirect to <http://test.host/>. | |
# ./spec/controllers/resources_controller_spec.rb:59 | |
18) ResourcesController POST create with invalid params assigns a newly created but unsaved resource as @resource | |
Failure/Error: post :create, :resource => {'these' => 'params'} | |
<Resource(id: integer, name: string, created_at: datetime, updated_at: datetime, ordinal: integer) (class)> received :new with unexpected arguments | |
expected: ({"these"=>"params"}) | |
got: (no args) | |
# ./spec/controllers/resources_controller_spec.rb:66 | |
19) ResourcesController POST create with invalid params re-renders the 'new' template | |
Failure/Error: response.should render_template("new") | |
expecting <"new"> but rendering with <""> | |
# ./spec/controllers/resources_controller_spec.rb:73 | |
20) ResourcesController PUT update with valid params updates the requested resource | |
Failure/Error: mock_resource.should_receive(:update_attributes).with({'these' => 'params'}) | |
(Mock "Resource_1018").update_attributes({"these"=>"params"}) | |
expected: 1 time | |
received: 0 times | |
# ./spec/controllers/resources_controller_spec.rb:84 | |
21) ResourcesController PUT update with valid params redirects to the resource | |
Failure/Error: response.should redirect_to(resource_url(mock_resource)) | |
Expected response to be a redirect to <http://test.host/resources/1020> but was a redirect to <http://test.host/>. | |
# ./spec/controllers/resources_controller_spec.rb:97 | |
22) ResourcesController PUT update with invalid params re-renders the 'edit' template | |
Failure/Error: response.should render_template("edit") | |
expecting <"edit"> but rendering with <""> | |
# ./spec/controllers/resources_controller_spec.rb:111 | |
23) ResourcesController DELETE destroy destroys the requested resource | |
Failure/Error: mock_resource.should_receive(:destroy) | |
(Mock "Resource_1023").destroy(any args) | |
expected: 1 time | |
received: 0 times | |
# ./spec/controllers/resources_controller_spec.rb:120 | |
24) ResourcesController DELETE destroy redirects to the resources list | |
Failure/Error: response.should redirect_to(resources_url) | |
Expected response to be a redirect to <http://test.host/resources> but was a redirect to <http://test.host/>. | |
# ./spec/controllers/resources_controller_spec.rb:127 | |
25) PatientsController GET index assigns all patients as @patients | |
Failure/Error: assigns(:patients).should eq([mock_patient]) | |
RSpec::Mocks::Mock#to_ary should return Array | |
# ./spec/controllers/patients_controller_spec.rb:19 | |
26) PatientsController POST create with valid params assigns a newly created patient as @patient | |
Failure/Error: post :create, :patient => {'these' => 'params'} | |
<Patient(id: integer, first_name: string, last_name: string, middle_name: string, address: string, physical_address: string, home_phone: string, work_phone: string, cell_phone: string, email: string, employer: string, spouse_name: string, spouse_employer: string, spouse_phone: string, guardian_name: string, guardian_phone: string, emergency_contact_name: string, emergency_contact_phone: string, created_at: datetime, updated_at: datetime, suffix: string, primary_resource_id: integer) (class)> received :new with unexpected arguments | |
expected: ({"these"=>"params"}) | |
got: (no args) | |
# ./spec/controllers/patients_controller_spec.rb:52 | |
27) PatientsController POST create with invalid params assigns a newly created but unsaved patient as @patient | |
Failure/Error: post :create, :patient => {'these' => 'params'} | |
<Patient(id: integer, first_name: string, last_name: string, middle_name: string, address: string, physical_address: string, home_phone: string, work_phone: string, cell_phone: string, email: string, employer: string, spouse_name: string, spouse_employer: string, spouse_phone: string, guardian_name: string, guardian_phone: string, emergency_contact_name: string, emergency_contact_phone: string, created_at: datetime, updated_at: datetime, suffix: string, primary_resource_id: integer) (class)> received :new with unexpected arguments | |
expected: ({"these"=>"params"}) | |
got: (no args) | |
# ./spec/controllers/patients_controller_spec.rb:66 | |
28) PatientsController PUT update with valid params updates the requested patient | |
Failure/Error: Patient.should_receive(:find).with("37") { mock_patient } | |
(<Patient(id: integer, first_name: string, last_name: string, middle_name: string, address: string, physical_address: string, home_phone: string, work_phone: string, cell_phone: string, email: string, employer: string, spouse_name: string, spouse_employer: string, spouse_phone: string, guardian_name: string, guardian_phone: string, emergency_contact_name: string, emergency_contact_phone: string, created_at: datetime, updated_at: datetime, suffix: string, primary_resource_id: integer) (class)>).find("37") | |
expected: 1 time | |
received: 2 times | |
# ./spec/controllers/patients_controller_spec.rb:83 | |
29) PatientsController DELETE destroy destroys the requested patient | |
Failure/Error: Patient.should_receive(:find).with("37") { mock_patient } | |
(<Patient(id: integer, first_name: string, last_name: string, middle_name: string, address: string, physical_address: string, home_phone: string, work_phone: string, cell_phone: string, email: string, employer: string, spouse_name: string, spouse_employer: string, spouse_phone: string, guardian_name: string, guardian_phone: string, emergency_contact_name: string, emergency_contact_phone: string, created_at: datetime, updated_at: datetime, suffix: string, primary_resource_id: integer) (class)>).find("37") | |
expected: 1 time | |
received: 2 times | |
# ./spec/controllers/patients_controller_spec.rb:119 | |
30) EventTypesController GET index assigns all event_types as @event_types | |
Failure/Error: assigns(:event_types).should eq([mock_event_type]) | |
RSpec::Mocks::Mock#to_ary should return Array | |
# ./spec/controllers/event_types_controller_spec.rb:19 | |
31) EventTypesController POST create with valid params assigns a newly created event_type as @event_type | |
Failure/Error: post :create, :event_type => {'these' => 'params'} | |
<EventType(id: integer, name: string, duration: integer, created_at: datetime, updated_at: datetime, color: string, text_color: string) (class)> received :new with unexpected arguments | |
expected: ({"these"=>"params"}) | |
got: (no args) | |
# ./spec/controllers/event_types_controller_spec.rb:52 | |
32) EventTypesController POST create with valid params redirects to the created event_type | |
Failure/Error: response.should redirect_to(event_type_url(mock_event_type)) | |
Expected response to be a redirect to <http://test.host/event_types/1042> but was a redirect to <http://test.host/>. | |
# ./spec/controllers/event_types_controller_spec.rb:59 | |
33) EventTypesController POST create with invalid params assigns a newly created but unsaved event_type as @event_type | |
Failure/Error: post :create, :event_type => {'these' => 'params'} | |
<EventType(id: integer, name: string, duration: integer, created_at: datetime, updated_at: datetime, color: string, text_color: string) (class)> received :new with unexpected arguments | |
expected: ({"these"=>"params"}) | |
got: (no args) | |
# ./spec/controllers/event_types_controller_spec.rb:66 | |
34) EventTypesController POST create with invalid params re-renders the 'new' template | |
Failure/Error: response.should render_template("new") | |
expecting <"new"> but rendering with <""> | |
# ./spec/controllers/event_types_controller_spec.rb:73 | |
35) EventTypesController PUT update with valid params updates the requested event_type | |
Failure/Error: mock_event_type.should_receive(:update_attributes).with({'these' => 'params'}) | |
(Mock "EventType_1044").update_attributes({"these"=>"params"}) | |
expected: 1 time | |
received: 0 times | |
# ./spec/controllers/event_types_controller_spec.rb:84 | |
36) EventTypesController PUT update with valid params redirects to the event_type | |
Failure/Error: response.should redirect_to(event_type_url(mock_event_type)) | |
Expected response to be a redirect to <http://test.host/event_types/1046> but was a redirect to <http://test.host/>. | |
# ./spec/controllers/event_types_controller_spec.rb:97 | |
37) EventTypesController PUT update with invalid params re-renders the 'edit' template | |
Failure/Error: response.should render_template("edit") | |
expecting <"edit"> but rendering with <""> | |
# ./spec/controllers/event_types_controller_spec.rb:111 | |
38) EventTypesController DELETE destroy destroys the requested event_type | |
Failure/Error: mock_event_type.should_receive(:destroy) | |
(Mock "EventType_1049").destroy(any args) | |
expected: 1 time | |
received: 0 times | |
# ./spec/controllers/event_types_controller_spec.rb:120 | |
39) EventTypesController DELETE destroy redirects to the event_types list | |
Failure/Error: response.should redirect_to(event_types_url) | |
Expected response to be a redirect to <http://test.host/event_types> but was a redirect to <http://test.host/>. | |
# ./spec/controllers/event_types_controller_spec.rb:127 | |
40) EventsController POST create with valid params assigns a newly created event as @event | |
Failure/Error: post :create, :event => {'these' => 'params'} | |
<Event(id: integer, start_time: datetime, end_time: datetime, all_day: boolean, created_at: datetime, updated_at: datetime, description: text, patient_id: integer, resource_id: integer, checkin_time: datetime, visit_time: datetime, checkout_time: datetime, event_type_id: integer, walk_in: boolean) (class)> received :new with unexpected arguments | |
expected: ({"these"=>"params"}) | |
got: (no args) | |
# ./spec/controllers/events_controller_spec.rb:52 | |
41) EventsController POST create with invalid params assigns a newly created but unsaved event as @event | |
Failure/Error: post :create, :event => {'these' => 'params'} | |
<Event(id: integer, start_time: datetime, end_time: datetime, all_day: boolean, created_at: datetime, updated_at: datetime, description: text, patient_id: integer, resource_id: integer, checkin_time: datetime, visit_time: datetime, checkout_time: datetime, event_type_id: integer, walk_in: boolean) (class)> received :new with unexpected arguments | |
expected: ({"these"=>"params"}) | |
got: (no args) | |
# ./spec/controllers/events_controller_spec.rb:66 | |
42) Resource should be sortable | |
Failure/Error: all[0].id.should == first.id | |
expected: 9, | |
got: 2 (using ==) | |
# ./spec/models/resource_spec.rb:10 | |
43) patients/show.html.erb renders attributes in <p> | |
Failure/Error: render | |
You have a nil object when you didn't expect it! | |
You might have expected an instance of Array. | |
The error occurred while evaluating nil.each | |
# ./app/views/patients/_appointments_list.html.erb:1:in `_app_views_patients__appointments_list_html_erb__982885488_112676890_1590016' | |
# ./app/views/patients/show.html.erb:107:in `_app_views_patients_show_html_erb__440706225_112698240_0' | |
# ./spec/views/patients/show.html.erb_spec.rb:27 | |
44) patients/index.html.erb renders a list of patients | |
Failure/Error: rendered.should have_selector("tr>td", :content => "First Name".to_s, :count => 2) | |
expected following output to contain a <tr>td>First Name</tr>td> tag: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> | |
<html><body> | |
<table id="patients_table"></table> | |
<div id="patients_pager"></div> | |
<div style="margin: 10px 0"> | |
<a href="/patients/new" class="button">New Patient</a> | |
</div> | |
</body></html> | |
# ./spec/views/patients/index.html.erb_spec.rb:27 | |
45) patients/new.html.erb renders new patient form | |
Failure/Error: form.should have_selector("input#patient_first_name", :name => "patient[first_name]") | |
expected following output to contain a <input#patient_first_name name='patient[first_name]'/> tag: | |
# ./spec/views/patients/new.html.erb_spec.rb:31 | |
# ./spec/views/patients/new.html.erb_spec.rb:30 | |
46) resources/new.html.erb renders new resource form | |
Failure/Error: rendered.should have_selector("form", :action => resources_path, :method => "post") do |form| | |
expected following output to contain a <form method='post' action='/resources'/> tag: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> | |
<html><body> | |
<h1>New resource</h1> | |
<form accept-charset="UTF-8" action="/resources/1074" class="edit_resource" id="edit_resource_1074" method="post"> | |
<div style="margin:0;padding:0;display:inline"> | |
<input name="utf8" type="hidden" value="✓"><input name="_method" type="hidden" value="put"> | |
</div> | |
<div class="field"> | |
<label for="resource_name">Name</label><br><input id="resource_name" name="resource[name]" size="30" type="text"> | |
</div> | |
<div class="actions"> | |
<input id="resource_submit" name="commit" type="submit" value="Update Resource"> | |
</div> | |
</form> | |
<a href="/resources">Back</a> | |
</body></html> | |
# ./spec/views/resources/new.html.erb_spec.rb:13 | |
47) users/new.html.erb renders new user form | |
Failure/Error: rendered.should have_selector("form", :action => users_path, :method => "post") do |form| | |
expected following output to contain a <form method='post' action='/users'/> tag: | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> | |
<html><body> | |
<h1>New user</h1> | |
<form accept-charset="UTF-8" action="/users/1079" class="edit_user" id="edit_user_1079" method="post"> | |
<div style="margin:0;padding:0;display:inline"> | |
<input name="utf8" type="hidden" value="✓"><input name="_method" type="hidden" value="put"> | |
</div> | |
<p><label for="user_username">Username</label><br><input id="user_username" name="user[username]" size="30" type="text"></p> | |
<p><label for="user_email">Email</label><br><input id="user_email" name="user[email]" size="30" type="text" value=""></p> | |
<p><label for="user_password">Password</label><br><input id="user_password" name="user[password]" size="30" type="password"></p> | |
<p><label for="user_password_confirmation">Password confirmation</label><br><input id="user_password_confirmation" name="user[password_confirmation]" size="30" type="password"></p> | |
<div class="actions"> | |
<input id="user_submit" name="commit" type="submit" value="Update User"> | |
</div> | |
</form> | |
<a href="/users">Back</a> | |
</body></html> | |
# ./spec/views/users/new.html.erb_spec.rb:13 | |
48) events/show.html.erb renders attributes in <p> | |
Failure/Error: render | |
undefined method `name' for nil:NilClass | |
# ./app/views/events/show.html.erb:10:in `_app_views_events_show_html_erb___381125797_113575800_0' | |
# ./spec/views/events/show.html.erb_spec.rb:14 | |
49) events/edit.html.erb renders the edit event form | |
Failure/Error: form.should have_selector("input#event_title", :name => "event[title]") | |
expected following output to contain a <input#event_title name='event[title]'/> tag: | |
<form accept-charset="UTF-8" action="/events/1081" class="edit_event" data-remote="true" id="edit_event_1081" method="post"> | |
<div style="margin:0;padding:0;display:inline"> | |
<input name="utf8" type="hidden" value="✓"><input name="_method" type="hidden" value="put"> | |
</div> | |
<div id="error_explanation" style="display: none"> | |
</div> | |
<div class="field"> | |
<span class="label">Checkin:</span> | |
<span id="event_checkin"> | |
<a href="/events/1081/checkin" data-remote="true">Now</a> | |
</span> | |
<span class="label">Started Visit:</span> | |
<span id="event_start_visit"> | |
<a href="/events/1081/start_visit" data-remote="true">Now</a> | |
</span> | |
<span class="label">Checkout:</span> | |
<span id="event_checkout"> | |
<a href="/events/1081/checkout" data-remote="true">Now</a> | |
</span> | |
</div> | |
<div class="field"> | |
<label for="event_patient_name">Patient name</label><br><input id="patient_id" name="event[patient_id]" type="hidden" value="1"><span id="event_form_patient"> | |
<a href="/patients/1" id="patient_name_link" target="_blank">Smith38139, John</a> | |
- | |
<a href="/events/1081/patient_input" data-remote="true">Change</a> | |
</span> | |
</div> | |
<div class="field"> | |
<label for="event_event_type_id">Event type</label><br><select name="event[event_type_id]" id="event_event_type_id"><option value=""></option></select> | |
</div> | |
<div class="field"> | |
<label for="event_resource_id">Resource</label><br><select id="event_resource_id" name="event[resource_id]"><option value="2">Test Resource</option></select> | |
</div> | |
<div class="field"> | |
<input name="event[all_day]" type="hidden" value="0"><input id="event_all_day" name="event[all_day]" type="checkbox" value="1"><label for="event_all_day">All day</label> | |
<input name="event[walk_in]" type="hidden" value="0"><input id="event_walk_in" name="event[walk_in]" type="checkbox" value="1"><label for="event_walk_in">Walk in</label> | |
</div> | |
<div class="field"> | |
<label for="event_start_time">Start time</label><br><select id="event_start_time_1i" name="event[start_time(1i)]"><option value="2006">2006</option> | |
<option value="2007">2007</option> | |
<option value="2008">2008</option> | |
<option value="2009">2009</option> | |
<option value="2010">2010</option> | |
<option selected value="2011">2011</option> | |
<option value="2012">2012</option> | |
<option value="2013">2013</option> | |
<option value="2014">2014</option> | |
<option value="2015">2015</option> | |
<option value="2016">2016</option></select><select id="event_start_time_2i" name="event[start_time(2i)]"><option value="1">January</option> | |
<option value="2">February</option> | |
<option value="3">March</option> | |
<option value="4">April</option> | |
<option selected value="5">May</option> | |
<option value="6">June</option> | |
<option value="7">July</option> | |
<option value="8">August</option> | |
<option value="9">September</option> | |
<option value="10">October</option> | |
<option value="11">November</option> | |
<option value="12">December</option></select><select id="event_start_time_3i" name="event[start_time(3i)]"><option value="1">1</option> | |
<option value="2">2</option> | |
<option value="3">3</option> | |
<option value="4">4</option> | |
<option value="5">5</option> | |
<option value="6">6</option> | |
<option value="7">7</option> | |
<option value="8">8</option> | |
<option value="9">9</option> | |
<option value="10">10</option> | |
<option value="11">11</option> | |
<option value="12">12</option> | |
<option value="13">13</option> | |
<option value="14">14</option> | |
<option value="15">15</option> | |
<option value="16">16</option> | |
<option value="17">17</option> | |
<option value="18">18</option> | |
<option value="19">19</option> | |
<option value="20">20</option> | |
<option value="21">21</option> | |
<option value="22">22</option> | |
<option selected value="23">23</option> | |
<option value="24">24</option> | |
<option value="25">25</option> | |
<option value="26">26</option> | |
<option value="27">27</option> | |
<option value="28">28</option> | |
<option value="29">29</option> | |
<option value="30">30</option> | |
<option value="31">31</option></select> | |
— <select id="event_start_time_4i" name="event[start_time(4i)]"><option value="00">00</option> | |
<option value="01">01</option> | |
<option value="02">02</option> | |
<option value="03">03</option> | |
<option value="04">04</option> | |
<option value="05">05</option> | |
<option value="06">06</option> | |
<option value="07">07</option> | |
<option value="08">08</option> | |
<option value="09">09</option> | |
<option value="10">10</option> | |
<option value="11">11</option> | |
<option value="12">12</option> | |
<option value="13">13</option> | |
<option value="14">14</option> | |
<option value="15">15</option> | |
<option value="16">16</option> | |
<option value="17">17</option> | |
<option value="18">18</option> | |
<option value="19">19</option> | |
<option value="20">20</option> | |
<option selected value="21">21</option> | |
<option value="22">22</option> | |
<option value="23">23</option></select> | |
: <select id="event_start_time_5i" name="event[start_time(5i)]"><option value="00">00</option> | |
<option value="01">01</option> | |
<option value="02">02</option> | |
<option value="03">03</option> | |
<option value="04">04</option> | |
<option value="05">05</option> | |
<option value="06">06</option> | |
<option selected value="07">07</option> | |
<option value="08">08</option> | |
<option value="09">09</option> | |
<option value="10">10</option> | |
<option value="11">11</option> | |
<option value="12">12</option> | |
<option value="13">13</option> | |
<option value="14">14</option> | |
<option value="15">15</option> | |
<option value="16">16</option> | |
<option value="17">17</option> | |
<option value="18">18</option> | |
<option value="19">19</option> | |
<option value="20">20</option> | |
<option value="21">21</option> | |
<option value="22">22</option> | |
<option value="23">23</option> | |
<option value="24">24</option> | |
<option value="25">25</option> | |
<option value="26">26</option> | |
<option value="27">27</option> | |
<option value="28">28</option> | |
<option value="29">29</option> | |
<option value="30">30</option> | |
<option value="31">31</option> | |
<option value="32">32</option> | |
<option value="33">33</option> | |
<option value="34">34</option> | |
<option value="35">35</option> | |
<option value="36">36</option> | |
<option value="37">37</option> | |
<option value="38">38</option> | |
<option value="39">39</option> | |
<option value="40">40</option> | |
<option value="41">41</option> | |
<option value="42">42</option> | |
<option value="43">43</option> | |
<option value="44">44</option> | |
<option value="45">45</option> | |
<option value="46">46</option> | |
<option value="47">47</option> | |
<option value="48">48</option> | |
<option value="49">49</option> | |
<option value="50">50</option> | |
<option value="51">51</option> | |
<option value="52">52</option> | |
<option value="53">53</option> | |
<option value="54">54</option> | |
<option value="55">55</option> | |
<option value="56">56</option> | |
<option value="57">57</option> | |
<option value="58">58</option> | |
<option value="59">59</option></select> | |
</div> | |
<div class="field"> | |
<label for="event_end_time">End time</label><br><select id="event_end_time_1i" name="event[end_time(1i)]"><option value="2006">2006</option> | |
<option value="2007">2007</option> | |
<option value="2008">2008</option> | |
<option value="2009">2009</option> | |
<option value="2010">2010</option> | |
<option selected value="2011">2011</option> | |
<option value="2012">2012</option> | |
<option value="2013">2013</option> | |
<option value="2014">2014</option> | |
<option value="2015">2015</option> | |
<option value="2016">2016</option></select><select id="event_end_time_2i" name="event[end_time(2i)]"><option value="1">January</option> | |
<option value="2">February</option> | |
<option value="3">March</option> | |
<option value="4">April</option> | |
<option selected value="5">May</option> | |
<option value="6">June</option> | |
<option value="7">July</option> | |
<option value="8">August</option> | |
<option value="9">September</option> | |
<option value="10">October</option> | |
<option value="11">November</option> | |
<option value="12">December</option></select><select id="event_end_time_3i" name="event[end_time(3i)]"><option value="1">1</option> | |
<option value="2">2</option> | |
<option value="3">3</option> | |
<option value="4">4</option> | |
<option value="5">5</option> | |
<option value="6">6</option> | |
<option value="7">7</option> | |
<option value="8">8</option> | |
<option value="9">9</option> | |
<option value="10">10</option> | |
<option value="11">11</option> | |
<option value="12">12</option> | |
<option value="13">13</option> | |
<option value="14">14</option> | |
<option value="15">15</option> | |
<option value="16">16</option> | |
<option value="17">17</option> | |
<option value="18">18</option> | |
<option value="19">19</option> | |
<option value="20">20</option> | |
<option value="21">21</option> | |
<option value="22">22</option> | |
<option selected value="23">23</option> | |
<option value="24">24</option> | |
<option value="25">25</option> | |
<option value="26">26</option> | |
<option value="27">27</option> | |
<option value="28">28</option> | |
<option value="29">29</option> | |
<option value="30">30</option> | |
<option value="31">31</option></select> | |
— <select id="event_end_time_4i" name="event[end_time(4i)]"><option value="00">00</option> | |
<option value="01">01</option> | |
<option value="02">02</option> | |
<option value="03">03</option> | |
<option value="04">04</option> | |
<option value="05">05</option> | |
<option value="06">06</option> | |
<option value="07">07</option> | |
<option value="08">08</option> | |
<option value="09">09</option> | |
<option value="10">10</option> | |
<option value="11">11</option> | |
<option value="12">12</option> | |
<option value="13">13</option> | |
<option value="14">14</option> | |
<option value="15">15</option> | |
<option value="16">16</option> | |
<option value="17">17</option> | |
<option value="18">18</option> | |
<option value="19">19</option> | |
<option value="20">20</option> | |
<option selected value="21">21</option> | |
<option value="22">22</option> | |
<option value="23">23</option></select> | |
: <select id="event_end_time_5i" name="event[end_time(5i)]"><option value="00">00</option> | |
<option value="01">01</option> | |
<option value="02">02</option> | |
<option value="03">03</option> | |
<option value="04">04</option> | |
<option value="05">05</option> | |
<option value="06">06</option> | |
<option selected value="07">07</option> | |
<option value="08">08</option> | |
<option value="09">09</option> | |
<option value="10">10</option> | |
<option value="11">11</option> | |
<option value="12">12</option> | |
<option value="13">13</option> | |
<option value="14">14</option> | |
<option value="15">15</option> | |
<option value="16">16</option> | |
<option value="17">17</option> | |
<option value="18">18</option> | |
<option value="19">19</option> | |
<option value="20">20</option> | |
<option value="21">21</option> | |
<option value="22">22</option> | |
<option value="23">23</option> | |
<option value="24">24</option> | |
<option value="25">25</option> | |
<option value="26">26</option> | |
<option value="27">27</option> | |
<option value="28">28</option> | |
<option value="29">29</option> | |
<option value="30">30</option> | |
<option value="31">31</option> | |
<option value="32">32</option> | |
<option value="33">33</option> | |
<option value="34">34</option> | |
<option value="35">35</option> | |
<option value="36">36</option> | |
<option value="37">37</option> | |
<option value="38">38</option> | |
<option value="39">39</option> | |
<option value="40">40</option> | |
<option value="41">41</option> | |
<option value="42">42</option> | |
<option value="43">43</option> | |
<option value="44">44</option> | |
<option value="45">45</option> | |
<option value="46">46</option> | |
<option value="47">47</option> | |
<option value="48">48</option> | |
<option value="49">49</option> | |
<option value="50">50</option> | |
<option value="51">51</option> | |
<option value="52">52</option> | |
<option value="53">53</option> | |
<option value="54">54</option> | |
<option value="55">55</option> | |
<option value="56">56</option> | |
<option value="57">57</option> | |
<option value="58">58</option> | |
<option value="59">59</option></select> | |
</div> | |
<div class="field"> | |
<label for="event_description">Description</label><br><textarea cols="40" id="event_description" name="event[description]" rows="5">MyText</textarea> | |
</div> | |
<div class="actions"> | |
<input id="event_submit" name="commit" type="submit" value="Update Event"><a href="/events/1081" class="button" data-confirm="Are you sure?" data-method="delete" data-remote="true" rel="nofollow">Delete</a> | |
</div> | |
</form> | |
# ./spec/views/events/edit.html.erb_spec.rb:18 | |
# ./spec/views/events/edit.html.erb_spec.rb:17 | |
50) events/new.html.erb renders new event form | |
Failure/Error: form.should have_selector("input#event_title", :name => "event[title]") | |
expected following output to contain a <input#event_title name='event[title]'/> tag: | |
# ./spec/views/events/new.html.erb_spec.rb:18 | |
# ./spec/views/events/new.html.erb_spec.rb:17 | |
Finished in 37.13 seconds | |
157 examples, 50 failures, 11 pending | |
rake aborted! | |
ruby -S bundle exec rspec "./spec/controllers/users_controller_spec.rb" "./spec/controllers/resources_controller_spec.rb" "./spec/controllers/patients_controller_spec.rb" "./spec/controllers/event_types_controller_spec.rb" "./spec/controllers/events_controller_spec.rb" "./spec/controllers/calendar_controller_spec.rb" "./spec/models/event_spec.rb" "./spec/models/role_spec.rb" "./spec/models/event_type_spec.rb" "./spec/models/patient_spec.rb" "./spec/models/resource_spec.rb" "./spec/models/user_spec.rb" "./spec/requests/event_types_spec.rb" "./spec/requests/users_spec.rb" "./spec/requests/patients_spec.rb" "./spec/requests/events_spec.rb" "./spec/requests/resources_spec.rb" "./spec/helpers/users_helper_spec.rb" "./spec/helpers/patients_helper_spec.rb" "./spec/helpers/events_helper_spec.rb" "./spec/helpers/calendar_helper_spec.rb" "./spec/helpers/resources_helper_spec.rb" "./spec/helpers/admin_helper_spec.rb" "./spec/helpers/event_types_helper_spec.rb" "./spec/routing/events_routing_spec.rb" "./spec/routing/resources_routing_spec.rb" "./spec/routing/users_routing_spec.rb" "./spec/routing/event_types_routing_spec.rb" "./spec/routing/patients_routing_spec.rb" "./spec/views/patients/show.html.erb_spec.rb" "./spec/views/patients/edit.html.erb_spec.rb" "./spec/views/patients/index.html.erb_spec.rb" "./spec/views/patients/new.html.erb_spec.rb" "./spec/views/resources/show.html.erb_spec.rb" "./spec/views/resources/edit.html.erb_spec.rb" "./spec/views/resources/index.html.erb_spec.rb" "./spec/views/resources/new.html.erb_spec.rb" "./spec/views/calendar/index.html.erb_spec.rb" "./spec/views/users/show.html.erb_spec.rb" "./spec/views/users/edit.html.erb_spec.rb" "./spec/views/users/index.html.erb_spec.rb" "./spec/views/users/new.html.erb_spec.rb" "./spec/views/events/show.html.erb_spec.rb" "./spec/views/events/edit.html.erb_spec.rb" "./spec/views/events/index.html.erb_spec.rb" "./spec/views/events/new.html.erb_spec.rb" "./spec/views/event_types/show.html.erb_spec.rb" "./spec/views/event_types/edit.html.erb_spec.rb" "./spec/views/event_types/index.html.erb_spec.rb" "./spec/views/event_types/new.html.erb_spec.rb" failed | |
Tasks: TOP => spec | |
(See full trace by running task with --trace) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment