summaryrefslogtreecommitdiff
path: root/spec/unit/controllers/timesheet.rb
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-03-04 14:45:05 -0700
committermo k <mo@mokhan.ca>2012-03-04 14:45:05 -0700
commitfdcae42bd19ce269d966f4c395350f69dd1c17ab (patch)
tree31d0c6571f5fd2187b4ac996eabade3beb0cc28e /spec/unit/controllers/timesheet.rb
parent63890bbb6495e6943765932135585fcb61a0510e (diff)
rename timesheet to project and use a query builder instead of repository to load all projects
Diffstat (limited to 'spec/unit/controllers/timesheet.rb')
-rw-r--r--spec/unit/controllers/timesheet.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/unit/controllers/timesheet.rb b/spec/unit/controllers/timesheet.rb
deleted file mode 100644
index 247e59d..0000000
--- a/spec/unit/controllers/timesheet.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-describe TimesheetController do
- before do
- @repository = fake
- @sut = TimesheetController.new(@repository)
- end
- describe "when loading all timesheets" do
- it "should return all the timesheets" do
- @results[0].must_equal(@timesheet)
- end
- before do
- timesheets = []
- @timesheet = fake
- timesheets << @timesheet
- @repository.stub(:find_all).with(Timesheet).and_return(timesheets)
- @results = @sut.index
- end
- end
-end