Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

context -> describe in specs

  • Loading branch information...
commit 915375bc85ce9e46ee687b7c68a5c512e5742bbf 1 parent 7215141
Brandon Tilley authored
View
6 spec/dataloaderb/conf_creator_spec.rb
@@ -11,7 +11,7 @@
@creator = Dataloaderb::ConfCreator.new(@yamls)
end
- context "#build_process_definitions" do
+ describe "#build_process_definitions" do
it "should build a process definition for each yaml file" do
@creator.processes.count.should == 1
@creator = Dataloaderb::ConfCreator.new([FIXTURE_PROCESSES[:full_process_one], FIXTURE_PROCESSES[:full_process_two]])
@@ -25,7 +25,7 @@
end
end
- context "#to_xml" do
+ describe "#to_xml" do
it "should create XML with the correct values" do
@creator.to_xml.include?('<entry key="sfdc.endpoint" value="https://www.salesforce.com"/>').should be_true
@creator.to_xml.include?('<bean id="firstUpsert"').should be_true
@@ -33,7 +33,7 @@
end
end
- context "#get_binding" do
+ describe "#get_binding" do
it "should get an object of class Binding" do
@creator.send(:get_binding).class.should == Binding
end
View
4 spec/dataloaderb/process_definition_spec.rb
@@ -7,7 +7,7 @@
@conf = Dataloaderb::ProcessDefinition.new(FIXTURE_PROCESSES[:full_process_one])
end
- context "#set/#get" do
+ describe "#set/#get" do
it "should allow setting process conf variables via the XML entry key as a string" do
@conf.set('sfdc.endpoint', 'https://test.salesforce.com')
@conf.get('sfdc.endpoint').should == 'https://test.salesforce.com'
@@ -19,7 +19,7 @@
end
end
- context "#load_yaml" do
+ describe "#load_yaml" do
it "should raise an ArgumentError if the file doesn't exist" do
lambda {
@conf.load_yaml('fakefile.yaml')
View
2  spec/dataloaderb/process_runner_spec.rb
@@ -46,7 +46,7 @@
end
end
- context "#run" do
+ describe "#run" do
it "should raise an exception if no arguments are passed" do
lambda {
@runner.run
Please sign in to comment.
Something went wrong with that request. Please try again.