renames rake task update_spec_cases to specs:update
This commit is contained in:
parent
92048366d1
commit
711adc6e5e
2 changed files with 47 additions and 45 deletions
|
@ -70,7 +70,7 @@ If you find bugs, have feature requests or questions, please
|
||||||
To update spec cases that are scraped from other sites.
|
To update spec cases that are scraped from other sites.
|
||||||
**Warning:** This could break specs.
|
**Warning:** This could break specs.
|
||||||
```bash
|
```bash
|
||||||
rake update_spec_cases
|
rake specs:update
|
||||||
```
|
```
|
||||||
|
|
||||||
To run specs
|
To run specs
|
||||||
|
|
4
Rakefile
4
Rakefile
|
@ -3,7 +3,8 @@ require "nokogiri"
|
||||||
require "open-uri"
|
require "open-uri"
|
||||||
require "pp"
|
require "pp"
|
||||||
|
|
||||||
task :update_spec_cases do
|
namespace :specs do
|
||||||
|
task :update do
|
||||||
sources = [
|
sources = [
|
||||||
{ urls: ["http://microformats.org/wiki/microformats-2"],
|
{ urls: ["http://microformats.org/wiki/microformats-2"],
|
||||||
html_selector: ".source-html4strict",
|
html_selector: ".source-html4strict",
|
||||||
|
@ -56,4 +57,5 @@ task :update_spec_cases do
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue