spec/lib/open_sesame/configuration_spec.rb in opensesame-0.1.2 vs spec/lib/open_sesame/configuration_spec.rb in opensesame-0.2.0
- old
+ new
@@ -10,14 +10,19 @@
configuration.organization_name.should == "challengepost"
end
it "github sets github client credentials" do
configuration.github "client_id", "client_secret"
- configuration.github_client[:id].should == "client_id"
- configuration.github_client[:secret].should == "client_secret"
+ configuration.github_application[:client_id].should == "client_id"
+ configuration.github_application[:client_secret].should == "client_secret"
end
+ it "github sets github token credentials" do
+ configuration.github_access_token "access_token"
+ configuration.github_application[:access_token].should == "access_token"
+ end
+
it "mounted_at sets mount_prefix" do
configuration.mounted_at "/foobar"
configuration.mount_prefix.should == "/foobar"
end
@@ -33,11 +38,11 @@
configuration.organization_name = nil
configuration.github "client_id", "client_secret"
configuration.should_not be_valid
- configuration.github_client = nil
+ configuration.github_application = nil
configuration.mounted_at "/foobar"
configuration.should_not be_valid
end
it "true when all values set" do
@@ -74,6 +79,6 @@
configuration.disable!
configuration.should_not be_enabled
end
end
-end
\ No newline at end of file
+end