Skip to content

Commit

Permalink
Travis is fixed \o/
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 committed Dec 9, 2016
1 parent 1a99197 commit 6b29e82
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion app/controllers/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def edit

# POST /events
def create
puts event_params.inspect
@event = Event.new(event_params)

@event.draft = (params[:draft] != nil)
Expand Down
1 change: 0 additions & 1 deletion app/models/date_range.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class DateRange < ActiveRecord::Base

def validate_start_date_not_in_past
if start_date < Date.current
puts "Comparing #{start_date.inspect} to #{Date.current.inspect}"
errors.add(:start_date, "darf nicht in der Vergangenheit liegen.")
end
if end_date < Date.current
Expand Down
5 changes: 0 additions & 5 deletions spec/features/event_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@
second_from = Date.tomorrow.next_day(6)
second_to = Date.tomorrow.next_day(8)

puts I18n.l(first_from).inspect
puts first_from.inspect
puts I18n.l(second_from).inspect
puts second_from.inspect

fill_in 'Maximale Teilnehmerzahl', :with => 25
fill_in "event[date_ranges_attributes][][start_date]", with: I18n.l(first_from)
fill_in "event[date_ranges_attributes][][end_date]", with: I18n.l(first_to)
Expand Down

0 comments on commit 6b29e82

Please sign in to comment.