Skip to content

Commit

Permalink
Use "skip" rather than "pending" for rspec 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjy committed Jun 23, 2014
1 parent 929941c commit c2846f9
Show file tree
Hide file tree
Showing 115 changed files with 158 additions and 160 deletions.
2 changes: 1 addition & 1 deletion spec/helpers/alternate_values_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe AlternateValuesHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/api/v1/taxon_names_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe Api::V1::TaxonNamesHelper do
#pending "add some examples to (or delete) #{__FILE__}"
#skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/citation_topics_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe CitationTopicsHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/citations_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe CitationsHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/collection_profiles_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe CollectionProfilesHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/contents_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe ContentsHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/dashboard_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe DashboardHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/data_attributes_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe DataAttributesHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/loan_items_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe LoanItemsHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/loans_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe LoansHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/otu_page_layout_sections_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe OtuPageLayoutSectionsHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/otu_page_layouts_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe OtuPageLayoutsHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/projects_helper_spec.rb
Expand Up @@ -12,5 +12,5 @@
# end

describe ProjectsHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/public_contents_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe PublicContentsHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/ranged_lot_categories_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe RangedLotCategoriesHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/sessions_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe SessionsHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/tagged_section_keywords_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe TaggedSectionKeywordsHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/tags_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe TagsHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/helpers/taxon_names_helper_spec.rb
Expand Up @@ -11,5 +11,5 @@
# end
# end
describe TaxonNamesHelper do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/lib/housekeeping_spec.rb
Expand Up @@ -142,7 +142,7 @@
end

specify 'instance must belong to the project before save' do
pending
skip
# $project_id = @project1.id
# expect(@i.valid?).to be_true
# expect(@i.project_id).to eq(@project1.id)
Expand Down
2 changes: 1 addition & 1 deletion spec/models/alternate_value_spec.rb
Expand Up @@ -59,7 +59,7 @@
end

specify 'can not provide an alternate value for a empty or nil field' do
pending
skip
end

specify 'can not add alternate values to NON_ANNOTATABLE_COLUMNS' do
Expand Down
2 changes: 1 addition & 1 deletion spec/models/asserted_distribution_spec.rb
@@ -1,5 +1,5 @@
require 'spec_helper'

describe AssertedDistribution do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
@@ -1,5 +1,5 @@
require 'spec_helper'

describe BiologicalRelationshipType::BiologicalRelationshipObjectType do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
@@ -1,5 +1,5 @@
require 'spec_helper'

describe BiologicalRelationshipType::BiologicalRelationshipSujbectType do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
6 changes: 3 additions & 3 deletions spec/models/citation_spec.rb
Expand Up @@ -16,9 +16,9 @@
end

context 'validation' do
pending ' for all required fields (:citation_object_id, :citation_object_type, :source_id).'
pending 'uniqueness'
pending 'topic_id is of class Topic only'
skip ' for all required fields (:citation_object_id, :citation_object_type, :source_id).'
skip 'uniqueness'
skip 'topic_id is of class Topic only'
end

end
2 changes: 1 addition & 1 deletion spec/models/citation_topic_spec.rb
Expand Up @@ -3,7 +3,7 @@
describe CitationTopic do
let(:citation_topic) { CitationTopic.new }

pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"

context 'Beth' do
context 'validation' do
Expand Down
8 changes: 3 additions & 5 deletions spec/models/collecting_event_spec.rb
Expand Up @@ -208,18 +208,16 @@
expect(@ce_p0.georeferences.first.geographic_item)
end

specify 'find other CES that have georeferences whose GI or EGI intersects the source GI' do
pending
end
skip 'find other CES that have georeferences whose GI or EGI intersects the source GI'
end

context 'and that georeference has both geographic item and error_geographic_item' do

specify 'find other CEs that have georeferences whose GIs or EGIs are within some radius of the EGI' do
pending
skip
end
specify 'find other CEs that have georeferences whose GIs or EGIs are are contained in the EGI' do
pending
skip
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/models/collection_object_spec.rb
Expand Up @@ -74,7 +74,7 @@

context 'soft validation' do
# Move to biological collection object
pending 'there is a buffered_deterimination label but no determination'
skip 'there is a buffered_deterimination label but no determination'
end

context 'concerns' do
Expand Down
2 changes: 1 addition & 1 deletion spec/models/collector_spec.rb
@@ -1,5 +1,5 @@
require 'spec_helper'

describe Collector do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/models/container/virtual_spec.rb
@@ -1,5 +1,5 @@
require 'spec_helper'

describe Container::Virtual do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/models/container_label_spec.rb
@@ -1,5 +1,5 @@
require 'spec_helper'

describe ContainerLabel do
pending "add some examples to (or delete) #{__FILE__}"
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 1 addition & 1 deletion spec/models/content_spec.rb
Expand Up @@ -22,7 +22,7 @@
end

context 'topic_id is of class Topic only' do
pending
skip
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/models/determiner_spec.rb
Expand Up @@ -14,7 +14,7 @@
end

specify 'determined_biological_collection_objects' do
pending
skip
end
end
end
Expand Down
6 changes: 3 additions & 3 deletions spec/models/geographic_item_spec.rb
Expand Up @@ -63,7 +63,7 @@
end
specify 'self.find_contains ' do
pending 'building a City of Champaign shape, and a point inside it'
skip 'building a City of Champaign shape, and a point inside it'
end
specify 'ST_ContainsProperly ' do
Expand Down Expand Up @@ -646,7 +646,7 @@
end

specify '.include_collecting_event' do
# pending 'construction of method'
# skip 'construction of method'
result = GeographicItem.include_collecting_event.order('id').to_a
expect(result.count).to eq(60)
expect(result).to eq(@all_gi)
Expand Down Expand Up @@ -686,7 +686,7 @@
end

specify '#excluding_self to drop self from any list of objects' do
pending 'construction of scenario'
skip 'construction of scenario'
end

specify '#ordered_by_shortest_distance_from orders objects by distance from passed object' do
Expand Down
6 changes: 3 additions & 3 deletions spec/models/georeference/verbatim_data_spec.rb
Expand Up @@ -4,7 +4,7 @@
context 'VerbatimData uses self.collecting_event to internalize data' do

specify 'without elevation' do
#pending "without elevation"
#skip "without elevation"
georeference = Georeference::VerbatimData.new(collecting_event: FactoryGirl.build(:valid_collecting_event,
verbatim_latitude: '40.092067',
verbatim_longitude: '-88.249519'))
Expand All @@ -15,7 +15,7 @@
end

specify 'with *only* minimum elevation' do
#pending "with only minimum elevation"
#skip "with only minimum elevation"
georeference = Georeference::VerbatimData.new(collecting_event: FactoryGirl.build(:valid_collecting_event,
minimum_elevation: 759,
verbatim_latitude: '40.092067',
Expand All @@ -27,7 +27,7 @@
end

specify 'with minimum and maximim elevation' do
#pending "with minimum elevation and maximum elevation"
#skip "with minimum elevation and maximum elevation"
georeference = Georeference::VerbatimData.new(collecting_event: FactoryGirl.build(:valid_collecting_event,
minimum_elevation: 759,
maximum_elevation: 859,
Expand Down

0 comments on commit c2846f9

Please sign in to comment.