Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ebbddfb
initial setup
MississippiBrenn Mar 5, 2018
89ff622
Remove spurious files
MississippiBrenn Mar 5, 2018
9eb795c
Reservation class, and reservation method for Hotel all tests passing.
MississippiBrenn Mar 6, 2018
fa34667
Date limits added
MississippiBrenn Mar 6, 2018
707c610
All Wave 1 tests passing
MississippiBrenn Mar 6, 2018
4244ca1
End of day 3.5.2018
MississippiBrenn Mar 6, 2018
88c6086
Wave 2 one test passing
MississippiBrenn Mar 6, 2018
2903b25
Wave 2 code completed.
MississippiBrenn Mar 7, 2018
dd8ba32
Wave2 tests passing
MississippiBrenn Mar 7, 2018
a230054
added helper method overlap? and incorporated it into a method in hotel
MississippiBrenn Mar 8, 2018
b961c02
Inital tests and skeleton code for Wave 3
MississippiBrenn Mar 8, 2018
115ec9f
All skeleton code for block method in place and tests passing.
MississippiBrenn Mar 8, 2018
bd4bfc9
Incorporating specific_date_range method into blocks. All tests passing.
MississippiBrenn Mar 8, 2018
e4b421a
Moved block out to separate class and tests out to separate class.
MississippiBrenn Mar 9, 2018
bc8808d
The reserve method can take multiple rooms. Wave1 and Wave3 tests pas…
MississippiBrenn Mar 9, 2018
c2dbf73
Reserves multiple rooms, all tests passing.
MississippiBrenn Mar 10, 2018
d7b408e
updated reserves_rooms_for method to stop running after correct numbe…
MississippiBrenn Mar 10, 2018
eae5367
Initial test and code for block. All tests passing.
MississippiBrenn Mar 10, 2018
f4db590
added search for blocks, update blocks, and reserve blocks method and…
MississippiBrenn Mar 10, 2018
50534d3
Wave 3 complete, number of rooms in block returns an error if higher …
MississippiBrenn Mar 11, 2018
fa1ed8a
Initial refactoring
MississippiBrenn Mar 11, 2018
434bdfc
Decoupled temp reservations method
MississippiBrenn Mar 11, 2018
505ebd9
Final cleanup, no methods changed.
MississippiBrenn Mar 12, 2018
cfea169
Completed questions and activity.
MississippiBrenn Mar 30, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
55 changes: 5 additions & 50 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,50 +1,5 @@
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/

# Used by dotenv library to load environment variables.
# .env

## Specific to RubyMotion:
.dat*
.repl_history
build/
*.bridgesupport
build-iPhoneOS/
build-iPhoneSimulator/

## Specific to RubyMotion (use of CocoaPods):
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# vendor/Pods/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalization:
/.bundle/
/vendor/bundle
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# Gemfile.lock
# .ruby-version
# .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
/sketch.md/
/SketchWave2.md/
/sketchW3.md/
/sketchw1v2.md/
/test.rb/
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'rake/testtask'

Rake::TestTask.new do |t|
t.libs = ["lib"]
t.warning = true
t.test_files = FileList['specs/*_spec.rb']
end

task default: :test
28 changes: 28 additions & 0 deletions SketchWave2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
nouns
list of unreserved rooms
given date range

room


verbs
unreserved

Part 1 in hotel
x1.test - takes in a valid date range
2.creates an array of dates to check against
x2.test - return s an array of room numbers
3.test- rooms are not reserved
x4. method - take in date range return unreserved rooms
? should be in reservation?
?how can be sure that these area taking in reservations

date range not a specific date- can go through each date in the range and check


Part 2- specific room reservation?
x1.test - takes in a valid date range
2.test- finds first available date
3.test - finds first available room- numerically
4.test - creates a reservation for date
5.method - takes in date range and reserve a room
5 changes: 5 additions & 0 deletions coverage/.last_run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"result": {
"covered_percent": 97.78
}
}
Loading