Skip to content

Commit

Permalink
specs: Add misspelling check
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Oliveira committed Nov 4, 2017
1 parent d1e1c88 commit e320470
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ A curated list of awesome inclusive events/projects/initiatives for women in the

- [Bay Area Girls](http://girlgeek.io/about/)

Sponsored dinners in San Francisco where the women coming from all over are invited to share their experiences, alongside prominent speakers from the female tech communits. The events also offer networking and potential recruiting by the sponsoring company. It has been hosted by 100+ companies and has several events per month.
Sponsored dinners in San Francisco where the women coming from all over are invited to share their experiences, alongside prominent speakers from the female tech communities. The events also offer networking and potential recruiting by the sponsoring company. It has been hosted by 100+ companies and has several events per month.

- [Byte Girl](http://bytegirl.com.br/) - *Loc:* <img src="https://upload.wikimedia.org/wikipedia/en/0/05/Flag_of_Brazil.svg" alt="Brazil" width="30"> - *Lang: PT-BR only*

Expand Down Expand Up @@ -174,7 +174,6 @@ A curated list of awesome inclusive events/projects/initiatives for women in the

Wonder Women Tech’s mission is to highlight, celebrate and educate women and the underrepresented in STEM industries. Conferences events and workshops bring together changemakers, pioneers, innovators, high-level speakers and attendees to explore ideas, discussions, and solutions for women and the underrepresented to succeed and thrive.


## Initiatives/Programs
([Go to top](#awesome4girls---))

Expand Down Expand Up @@ -245,7 +244,6 @@ A curated list of awesome inclusive events/projects/initiatives for women in the

We are a nonprofit dedicated to reducing — and, we hope, ultimately eliminating — the gender gap in technology occupations. We hold workshops and an annual entrepreneurial summer camp aimed at giving middle-school girls hands-on experience with different kinds of technology and enable them to interact with women who have carved out successful careers in technology fields.


### Linux/OpenSource
([Go to top](#awesome4girls---))

Expand Down
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ RSpec::Core::RakeTask.new(:spec)

task :default => :spec

task :setup do
p "Installing misspell for common misspelling checks"
p `curl -L https://git.io/misspell | bash`
end

namespace :gen do
desc "Generate an html version of this list"
task :html do
Expand Down
Binary file added bin/misspell
Binary file not shown.
29 changes: 29 additions & 0 deletions spec/misspelling_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
require_relative '../lib/awesome_list'

describe 'commonly misspelled English words check' do
before(:each) do
unless File.exists?('./bin/misspell')
skip "Misspell is not installed. Run `rake setup`"
end
end

context "README" do
it 'should not have misspellings' do
misspelling = `./bin/misspell README.md`

expect(misspelling).to be_empty,
"There is one or more misspellings on README.md \n" +
"#{misspelling}"
end
end

context "CONTRIBUTING" do
it 'should not have misspellings' do
misspelling = `./bin/misspell CONTRIBUTING.md`

expect(misspelling).to be_empty,
"There is one or more misspellings on CONTRIBUTING.md \n" +
"#{misspelling}"
end
end
end

0 comments on commit e320470

Please sign in to comment.