It reads your torrents. Spit out magnet URIs.
$ ./magneto.rb magneto.rb.torrent
Results in:
It reads your torrents. Spit out magnet URIs.
$ ./magneto.rb magneto.rb.torrent
Results in:
module InstanceModule | |
def track | |
"Tracking todo: #{self.name}" | |
end | |
end | |
module ClassModule | |
def class_name | |
"Tracking class: #{self.name}" |
require 'mechanize' | |
def google_search(query_text) | |
agent=Mechanize.new | |
goog = agent.get "http://www.google.com" | |
search = goog.form_with(:action => "/search") | |
search.field_with(:name => 'q').value = query_text | |
results = search.submit | |
return results | |
end |
So in following @berkes 'Add sorting to your product page in Spree' guide, I tried to repeat with my taxons controller. However there was no difference in order, despite the scopes being applied.
Another commenter Adam shared my frustration: 'How would I make this work for taxons as well? Everything I try doesn't work'.
After a little bit of research, I figured it out.
BDD stands for Behavior-driven development, and is a process of exploring, discovering, defining and driving out the desired behavior of a sw system, using conversations, concrete examples and automated tests.
Conversations with concrete examples helps explore, discover and illustrate our shared understanding of the problem we need to solve for our stakeholders. Then we refine those examples into automated tests, to describe the desired behavior of our solution, to drive the development of that behavior in the system. To do that you may use tools like Cucumber.
BDD is an agile practice, so it needs to be done just in time, at the last reponsibile moment, and not just in case. The key in BDD are conversations, and these conversations needs to be done near in time with the work you have to do.
You need to have your work broken down into user stories.
In the conversation between the 3 amigos (Dev, Testers, PO) for a user story, you'll have lots of questions raising and you'll explore the requirements
class Person | |
def name(n) | |
@name = n | |
self | |
end | |
def age(a) | |
@age = a | |
self | |
end |
require 'date' | |
lazy_dates = (Date.today..Date.new(9999)).lazy | |
fridays_the_13th = lazy_dates.select { |d| d.friday? and d.day == 13 }.first(10) | |
puts fridays_the_13th |