Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Event spec runs.

  • Loading branch information...
commit 26914490a59d9998eca1f5c42dd5f652acf6a5e6 1 parent ac7b548
Michael Simpson authored November 16, 2012

Showing 1 changed file with 10 additions and 10 deletions. Show diff stats Hide diff stats

  1. 20  spec/models/event_spec.rb
20  spec/models/event_spec.rb
... ...
@@ -1,23 +1,23 @@
1 1
 require 'spec_helper'
2  
-before :all do
3 2
 
4  
-  vote1 = Vote.new
5  
-  vote2 = Vote.new
6  
-  vote3 = Vote.new
7  
-  timeslot1 = Timeslot.new
8  
-  timeslot2 = Timeslot.new
9  
-  event = Event.new(timeslots: [timeslot1, timeslot2])
10  
-end
11 3
 
12 4
 describe Event do
  5
+  before :all do
  6
+
  7
+    vote1 = Vote.new
  8
+    vote2 = Vote.new
  9
+    vote3 = Vote.new
  10
+    timeslot1 = Timeslot.new
  11
+    timeslot2 = Timeslot.new
  12
+    event = Event.new(timeslots: [timeslot1, timeslot2])
  13
+  end
  14
+
13 15
   it "calculates the most popular time" do
14 16
     timeslot1.votes = [vote1, vote2]
15 17
     timeslot2.vote = vote3
16 18
     event.calculate_event_time.should_be timeslot2
17  
-
18 19
   end
19 20
 
20  
-end
21 21
   it "should calculate_event_time" do
22 22
     
23 23
   end

0 notes on commit 2691449

Please sign in to comment.
Something went wrong with that request. Please try again.