justinhennessy / dm-challenge Goto Github PK
View Code? Open in Web Editor NEWCommitment based cycling challenge dashboard
Commitment based cycling challenge dashboard
As a general rule when using time in tests, get a reference timestamp (like Time.now
or really anything) at the start of the test, and use it throughout. You do it in the tests by having end_date
be defined from start_date
but I change it below to be explicit.
On https://github.com/justinhennessy/dm-challenge/blob/master/spec/features/dashboard_spec.rb#L14 , current_date is a local and as far as I can see is not being used, you should be able to delete it.
https://github.com/thoughtbot/factory_girl_rails would help to clean up your tests if you use it. Specifically, between the two suggestions the first test would look like this:
it "shows the number of days until the challenge starts" do
now = Time.now
challenge = FactoryGirl.create :challenge, start_date: now + 6.days, end_date: start_date + 31.days
visit "/dashboard"
expect(page).to have_text("5 days to start!")
end
This is one of my biggest pet peeves - a repository without a decent README (in your case you have 2 of them lol, delete the .rdoc one).
Lucky for you smarter people than I have recently written on the topic. In my opinion I've done a good job on the fundraiser README.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.